fix: bad format for console timestamp
Massimo Melina committed
Jun 2, 2024 at 10:30 UTC
2fd55bb135442c24140752e20022ad03bdb723d1
1 file changed
+1
-1
src/consoleLog.ts
+1
-1
@@ -10,6 +10,6 @@ for (const k of ['log','warn','error']) {
10
if (consoleLog.length > 100_000) // limit to avoid infinite space
11
consoleLog.splice(0, 1_000)
12
events.emit('console', rec)
13
- return original(ts.toLocaleTimeString('en-uk'), ...args)
13
+ return original(ts.toLocaleTimeString(undefined, { hourCycle: 'h24' }), ...args) // bundled nodejs doesn't have locales (and apparently uses en-US)
14
}
15
}