You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems that system time zone is read only when node-time module is loaded. This implies that when system time zone is changed, new Date objects get the old time zone.
const time = require('time');
let now = new time.Date();
console.log(now.getTimezone()); // Europe/Warsaw
// change system time zone to America/Whitehorse now (i.e. from command line)
setTimeout(function() {
let now = new time.Date();
console.log(now.getTimezone()); // Europe/Warsaw
done();
}, 5000);
The text was updated successfully, but these errors were encountered:
It seems that system time zone is read only when node-time module is loaded. This implies that when system time zone is changed, new Date objects get the old time zone.
The text was updated successfully, but these errors were encountered: