Rename moment to time as it has nothing todo anymore with momentjs

Change some observables to static as they never change later
This commit is contained in:
the-djmaze 2024-02-05 01:15:05 +01:00
parent 673126ae8a
commit 2084913a4d
7 changed files with 65 additions and 65 deletions

View file

@ -144,7 +144,7 @@ export const
time = Date.parse(element.dateTime) / 1000;
}
let key = element.dataset.momentFormat;
let key = element.dataset.timeFormat;
if (key) {
element.textContent = timestampToString(time, key);
if ('FULL' !== key && 'FROMNOW' !== key) {