debug
This commit is contained in:
parent
4667b668d5
commit
3e85f7cd5c
1 changed files with 7 additions and 2 deletions
|
@ -6,8 +6,13 @@
|
||||||
* @returns String
|
* @returns String
|
||||||
*/
|
*/
|
||||||
export const showDate = (locale: Map<string, unknown>, date: Date) => {
|
export const showDate = (locale: Map<string, unknown>, date: Date) => {
|
||||||
const timezoned = new Date(date.getTime());
|
const timezoned = new Date(date.getTime() + date.getTimezoneOffset() * 60000);
|
||||||
return `${timezoned.toDateString()} ${locale.get("u_time_at")} ${timezoned.toTimeString().split(" ")[0]}`;
|
|
||||||
|
console.log(date.getTimezoneOffset());
|
||||||
|
|
||||||
|
return `${timezoned.toDateString()} ${locale.get("u_time_at")} ${
|
||||||
|
timezoned.toTimeString().split(" ")[0]
|
||||||
|
}`;
|
||||||
};
|
};
|
||||||
|
|
||||||
enum TimeSecond {
|
enum TimeSecond {
|
||||||
|
|
Loading…
Reference in a new issue