We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent feee696 commit 89236e5Copy full SHA for 89236e5
src/index.js
@@ -59,7 +59,7 @@
59
}
60
61
// Generate a new custom ObjectId
62
- const timestampHex = Math.floor(Date.now() / 1000).toString(16).padStart(8, '0');
+ const timestampHex = Math.floor(new Date(new Date().toISOString()).getTime() / 1000).toString(16).padStart(8, '0');
63
const processIdHex = Math.floor(Math.random() * 0x100000000000).toString(16).padStart(12, '0');
64
65
counter = (counter + 1) % 10000;
0 commit comments