ui: scratchpad: seperate code store

This commit is contained in:
undefined committed 2021-11-14 16:33:27 +08:00
1 parent 803885330d
commit 17b6c2f6af
4 files changed
+8 -5

No files matched your search

+1 -1
View File
@@ -269,7 +269,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, 12)}`);
return new ObjectID(`${hexSeconds}${allZero ? '0000000000000000' : new ObjectID().toHexString().substr(8)}`);
}
}