mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-11-26 01:46:18 -05:00
Timezone not required.
This commit is contained in:
parent
f1cf84e037
commit
2f0b653cff
1 changed files with 2 additions and 2 deletions
|
|
@ -81,7 +81,7 @@ export function secondsToElapsedPopup(seconds) {
|
|||
}
|
||||
|
||||
export function isoDatetimeToElapsedPopup(dt) {
|
||||
const d = new Date(`${dt}+00:00`);
|
||||
const d = new Date(dt);
|
||||
return secondsToElapsedPopup(d.getTime() / 1000);
|
||||
}
|
||||
|
||||
|
|
@ -115,7 +115,7 @@ export function isoDatetimeToString(dt) {
|
|||
// Convert a datetime to a human-readable date format.
|
||||
let d = <></>;
|
||||
if (dt) {
|
||||
d = new Date(`${dt}+00:00`);
|
||||
d = new Date(dt);
|
||||
d = `${d.getFullYear()}-${d.getMonth() + 1}-${d.getDate()}`;
|
||||
}
|
||||
return d;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue