Fix lint issues

This commit is contained in:
Wolfsblvt 2024-07-25 00:23:02 +02:00
parent 7956dc0b3f
commit d30fc5d165
2 changed files with 2 additions and 2 deletions

View File

@ -161,7 +161,7 @@ export function humanizedDateTime() {
const dt = {
year: now.getFullYear(), month: now.getMonth() + 1, day: now.getDate(),
hour: now.getHours(), minute: now.getMinutes(), second: now.getSeconds(),
}
};
for (const key in dt) {
dt[key] = dt[key].toString().padStart(2, '0');
}

View File

@ -756,7 +756,7 @@ function parseTimestamp(timestamp) {
let iso8601;
for (const x of dtFmt) {
let rgxMatch = timestamp.match(x.pattern)
let rgxMatch = timestamp.match(x.pattern);
if (!rgxMatch) continue;
iso8601 = x.callback(...rgxMatch);
break;