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
Description of the Issue and Steps to Reproduce:
On bootstraping the node application, when the timezone is set to UTC using the env variable as follows: process.env.TZ = 'UTC';
The timezone is updated. MomentJS returns the date object in UTC Time. But inspecting the moment-date object closely shows that the flag _isUTC is set to false. On further inspection with the JS date object,
var d = new Date();
d.getTimezoneOffset(); //Returns 0
moment().utcOffset(); //Returns -0
Further checking it, if timezone is updated to 0 for moment object, everything works fine, but when it is -0, it does not.
Description of the Issue and Steps to Reproduce:
On bootstraping the node application, when the timezone is set to UTC using the env variable as follows:
process.env.TZ = 'UTC';
The timezone is updated. MomentJS returns the date object in UTC Time. But inspecting the moment-date object closely shows that the flag _isUTC is set to false. On further inspection with the JS date object,
Further checking it, if timezone is updated to 0 for moment object, everything works fine, but when it is -0, it does not.
Environment:
Code to run before reporting
Output:
5.2.14.1
The text was updated successfully, but these errors were encountered: