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
// TODO: Use (malleable) environment variables instead of system settings.
611
611
varcurrentYear=newDate().getFullYear();
612
612
varwinter=newDate(currentYear,0,1);
613
613
varsummer=newDate(currentYear,6,1);
614
614
varwinterOffset=winter.getTimezoneOffset();
615
615
varsummerOffset=summer.getTimezoneOffset();
616
616
617
-
// Local standard timezone offset. Local standard time is not adjusted for daylight savings.
618
-
// This code uses the fact that getTimezoneOffset returns a greater value during Standard Time versus Daylight Saving Time (DST).
619
-
// Thus it determines the expected output during Standard Time, and it compares whether the output of the given date the same (Standard) or less (DST).
617
+
// Local standard timezone offset. Local standard time is not adjusted for
618
+
// daylight savings. This code uses the fact that getTimezoneOffset returns
619
+
// a greater value during Standard Time versus Daylight Saving Time (DST).
620
+
// Thus it determines the expected output during Standard Time, and it
621
+
// compares whether the output of the given date the same (Standard) or less
0 commit comments