mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Use single format for chat timestamps
This commit is contained in:
@ -273,6 +273,10 @@ export function isOdd(number) {
|
||||
}
|
||||
|
||||
export function timestampToMoment(timestamp) {
|
||||
if (!timestamp) {
|
||||
return moment.invalid();
|
||||
}
|
||||
|
||||
// Unix time (legacy TAI)
|
||||
if (typeof timestamp === 'number') {
|
||||
return moment(timestamp);
|
||||
|
Reference in New Issue
Block a user