1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

Ensure UTC time is UTC

This commit is contained in:
Steve-Mcl 2022-03-29 08:35:09 +01:00
parent cdc8a42393
commit cf6df1556c

View File

@ -78,7 +78,7 @@ function buildDiagnosticReport(scope, callback) {
wsl: isInWsl(), wsl: isInWsl(),
time: { time: {
timestamp: now.valueOf(), timestamp: now.valueOf(),
utc: "" + now, utc: "" + now.toUTCString(),
locale: now.toLocaleString(), locale: now.toLocaleString(),
}, },
intl: Intl.DateTimeFormat().resolvedOptions(), intl: Intl.DateTimeFormat().resolvedOptions(),