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
The following tests pass in Node. They pass in colony when the host time zone is PST, but not when it is PDT. The tests have been disabled in #725, and are preserved here for later analysis.
var d = new Date();
var offset = d.getTimezoneOffset() * 60000;
var offsetMinutes = (offset / 60000 % 60);
var offsetHours = (offset / 3600000 % 24);
d = new Date();
d.setHours(16);
d.setMinutes(0);
tap.eq(d.getUTCHours(), Math.floor(16 + offsetHours) % 24);
d = new Date();
d.setUTCHours(16);
d.setUTCMinutes(0);
tap.eq(d.getHours(), Math.floor(16 - offsetHours) % 24);
The text was updated successfully, but these errors were encountered:
The following tests pass in Node. They pass in colony when the host time zone is PST, but not when it is PDT. The tests have been disabled in #725, and are preserved here for later analysis.
The text was updated successfully, but these errors were encountered: