mirror of
https://github.com/remotely-save/remotely-save.git
synced 2024-06-07 21:10:45 +00:00
fix timestamp to date using native js
This commit is contained in:
parent
1f33ac5d7a
commit
74de7da89a
@ -345,7 +345,7 @@ export const unixTimeToStr = (x: number | undefined | null) => {
|
|||||||
if (x === undefined || x === null || Number.isNaN(x)) {
|
if (x === undefined || x === null || Number.isNaN(x)) {
|
||||||
return undefined;
|
return undefined;
|
||||||
}
|
}
|
||||||
return window.moment(x).format() as string;
|
return new Date(x).toISOString();
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user