ui: update tpl function

This commit is contained in:
undefined committed 2024-05-22 17:42:10 +08:00
1 parent 0b5532e488
commit 2d0d2ae10a
2 files changed
+6 -10

No files matched your search

+1 -1
View File
@@ -137,7 +137,7 @@ export namespace Time {
else if (isMoment(timestamp)) _timestamp = timestamp.toDate().getTime();
else _timestamp = timestamp.getTime();
const hexSeconds = Math.floor(_timestamp / 1000).toString(16);
return new ObjectId(`${hexSeconds}${allZero ? '0000000000000000' : new ObjectId().toHexString().substr(8)}`);
return new ObjectId(`${hexSeconds}${allZero ? '0000000000000000' : new ObjectId().toHexString().substring(8)}`);
}
}