4 ms·
"Chrome 31.0.1650 (Mac OS X 10.9.0) ngMock TzDate should fake getHours method FAILED Expected 4 to be 3." Hard coded dates not taking into account timezone and
by bootload 12y ago
"Chrome 31.0.1650 (Mac OS X 10.9.0) ngMock TzDate should fake getHours method FAILED Expected 4 to be 3."
Hard coded dates not taking into account timezone and daylight saving? Been there, done that. This week the time was AEST-DS (Daylight saving) and is now AEST (finished daylight saving) [0]
[0] For example: Melbourne
AEST: Australian Eastern Standard Time == GMT +10Hrs
DS AEST-1 hour when daylight saving is declared. When Daylight saving finishes, DS is AEST+1 hour or AEST again.