Fix lint issues
This commit is contained in:
parent
7956dc0b3f
commit
d30fc5d165
|
@ -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');
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue