]> Cypherpunks repositories - gostls13.git/commit
time: removed from tests now obsolete assumption about Australian tz abbreviations
authorAlberto Donizetti <alb.donizetti@gmail.com>
Thu, 21 Aug 2014 17:35:43 +0000 (10:35 -0700)
committerBrad Fitzpatrick <bradfitz@golang.org>
Thu, 21 Aug 2014 17:35:43 +0000 (10:35 -0700)
commit5e70140521ac2e5c004de8cd61321d3a51619ae6
treee61f00e45311f3c0fee3b5727a23a74891d59bb2
parentb9cd8f08c7d75d1b0163121d545a54c37f04c3cc
time: removed from tests now obsolete assumption about Australian tz abbreviations

Australian timezones abbreviation for standard and daylight saving time were recently
changed from EST for both to AEST and AEDT in the icann tz database (see changelog
on www.iana.org/time-zones).

A test in the time package was written to check that the ParseInLocation function
understand that Feb EST and Aug EST are different time zones, even though they are
both called EST. This is no longer the case, and the Date function now returns
AEST or AEDT for australian tz on every Linux system with an up to date tz database
(and this makes the test fail).

Since I wasn't able to find another country that 1) uses daylight saving and 2) has
the same abbreviation for both on tzdata, I changed the test to make sure that
ParseInLocation does not get confused when it parses, in different locations, two
dates with the same abbreviation (this was suggested in the mailing list).

Fixes #8547.

LGTM=bradfitz
R=golang-codereviews, bradfitz
CC=golang-codereviews
https://golang.org/cl/130920043
src/pkg/time/format_test.go