mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Fix lint issues
This commit is contained in:
@ -161,7 +161,7 @@ export function humanizedDateTime() {
|
|||||||
const dt = {
|
const dt = {
|
||||||
year: now.getFullYear(), month: now.getMonth() + 1, day: now.getDate(),
|
year: now.getFullYear(), month: now.getMonth() + 1, day: now.getDate(),
|
||||||
hour: now.getHours(), minute: now.getMinutes(), second: now.getSeconds(),
|
hour: now.getHours(), minute: now.getMinutes(), second: now.getSeconds(),
|
||||||
}
|
};
|
||||||
for (const key in dt) {
|
for (const key in dt) {
|
||||||
dt[key] = dt[key].toString().padStart(2, '0');
|
dt[key] = dt[key].toString().padStart(2, '0');
|
||||||
}
|
}
|
||||||
|
@ -756,7 +756,7 @@ function parseTimestamp(timestamp) {
|
|||||||
|
|
||||||
let iso8601;
|
let iso8601;
|
||||||
for (const x of dtFmt) {
|
for (const x of dtFmt) {
|
||||||
let rgxMatch = timestamp.match(x.pattern)
|
let rgxMatch = timestamp.match(x.pattern);
|
||||||
if (!rgxMatch) continue;
|
if (!rgxMatch) continue;
|
||||||
iso8601 = x.callback(...rgxMatch);
|
iso8601 = x.callback(...rgxMatch);
|
||||||
break;
|
break;
|
||||||
|
Reference in New Issue
Block a user