fix timestamp to date using native js

This commit is contained in:
fyears 2024-05-18 01:41:54 +08:00
parent 1f33ac5d7a
commit 74de7da89a

View File

@ -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();
};
/**