diff --git a/src/misc.ts b/src/misc.ts index 1ff70da..d90d60b 100644 --- a/src/misc.ts +++ b/src/misc.ts @@ -345,7 +345,7 @@ export const unixTimeToStr = (x: number | undefined | null) => { if (x === undefined || x === null || Number.isNaN(x)) { return undefined; } - return window.moment(x).format() as string; + return new Date(x).toISOString(); }; /**