mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Merge branch 'staging' into smol-tag-improvements
This commit is contained in:
@ -654,11 +654,11 @@ function parseTimestamp(timestamp) {
|
||||
}
|
||||
|
||||
// Unix time (legacy TAI / tags)
|
||||
if (typeof timestamp === 'number') {
|
||||
if (typeof timestamp === 'number' || /^\d+$/.test(timestamp)) {
|
||||
if (isNaN(timestamp) || !isFinite(timestamp) || timestamp < 0) {
|
||||
return moment.invalid();
|
||||
}
|
||||
return moment(timestamp);
|
||||
return moment(Number(timestamp));
|
||||
}
|
||||
|
||||
// ST "humanized" format pattern
|
||||
|
Reference in New Issue
Block a user