From ff765d5ae7a11d0b566a799ac7e2d91e61d4ea7d Mon Sep 17 00:00:00 2001 From: fyears <1142836+fyears@users.noreply.github.com> Date: Sat, 25 May 2024 15:53:27 +0800 Subject: [PATCH] change back to local time --- src/misc.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/misc.ts b/src/misc.ts index 68c6a60..046693e 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 new Date(x).toISOString(); + return window.moment(x).format() as string; }; /**