Cleanup time handling

This commit is contained in:
djmaze 2021-07-19 14:26:32 +02:00
parent bb15cd1ec3
commit 1f2208d304
3 changed files with 11 additions and 8 deletions

View file

@ -1,4 +1,3 @@
import { doc } from 'Common/Globals';
import { i18n } from 'Common/Translator';
export function timestampToString(timeStampInUTC, formatStr) {
@ -53,8 +52,3 @@ export function timeToNode(element, time) {
console.error(e);
}
}
addEventListener('reload-time', () => setTimeout(() =>
doc.querySelectorAll('[data-bind*="moment:"]').forEach(element => timeToNode(element))
, 1)
);