Skip to content
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.

test(TzDate): fix test in Australia #14285

Closed

Conversation

gkalpak
Copy link
Member

@gkalpak gkalpak commented Mar 21, 2016

Probably due to implementation differences in browsers for pre-DST periods (see #5017 and especially #5017 (comment) for context), some TzDate tests had different behavior on different Timezones/Regions (e.g. failed in Australia, which started to observe DST in 1971).
Since the used year (1970) didn't have any particular significance, this commit fixes the issue
by using a year that is more consistently handled by browsers (2000).

Fixes #14272

Probably due to implementation differences in browsers for pre-DST period (see
angular#5017 and especially
angular#5017 (comment) for context), some
`TzDate` tests had different behavior on different Timezones/Regions (e.g. failed in Australia,
which started to observe DST in 1971).
Since the used year (`1970`) didn't have any particular significance, this commit fixes the issue
by using a year that is more consistently handled by browsers (`2000`).

Fixes angular#14272
@Narretz
Copy link
Contributor

Narretz commented Mar 21, 2016

LGTM

gkalpak added a commit that referenced this pull request Mar 21, 2016
Probably due to implementation differences in browsers for pre-DST period (see
#5017 and especially
#5017 (comment) for context), some
`TzDate` tests had different behavior on different Timezones/Regions (e.g. failed in Australia,
which started to observe DST in 1971).
Since the used year (`1970`) didn't have any particular significance, this commit fixes the issue
by using a year that is more consistently handled by browsers (`2000`).

Fixes #14272

Closes #14285
@gkalpak gkalpak closed this in 27ceb6a Mar 21, 2016
@gkalpak gkalpak deleted the test-TzDate-fix-test-in-Australia branch March 27, 2016 17:49
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Chrome unit test fails on newly clean build (mock.tzDate) (Expected '12/31/1969' to match '1970')
3 participants