mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
#1069 Convert to number
This commit is contained in:
@ -644,7 +644,7 @@ function parseTimestamp(timestamp) {
|
|||||||
if (isNaN(timestamp) || !isFinite(timestamp) || timestamp < 0) {
|
if (isNaN(timestamp) || !isFinite(timestamp) || timestamp < 0) {
|
||||||
return moment.invalid();
|
return moment.invalid();
|
||||||
}
|
}
|
||||||
return moment(timestamp);
|
return moment(Number(timestamp));
|
||||||
}
|
}
|
||||||
|
|
||||||
// ST "humanized" format pattern
|
// ST "humanized" format pattern
|
||||||
|
Reference in New Issue
Block a user