1
0
mirror of https://github.com/golang/go synced 2024-10-06 09:21:21 -06:00
go/src/pkg/time
Alberto Donizetti 5e70140521 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
2014-08-21 10:35:43 -07:00
..
example_test.go time: change formatting of microseconds duration to SI modifier 2014-06-12 17:01:13 -07:00
export_test.go time: correct path to time zone zip file on Unix 2013-10-29 17:11:51 -04:00
export_windows_test.go time: provide timezone abbreviations on windows 2013-06-06 16:30:25 +10:00
format_test.go time: removed from tests now obsolete assumption about Australian tz abbreviations 2014-08-21 10:35:43 -07:00
format.go time: Fix missing colon when formatting time zone offsets with seconds 2014-08-08 12:42:20 -07:00
genzabbrs.go time: provide timezone abbreviations on windows 2013-06-06 16:30:25 +10:00
internal_test.go runtime: remove now arg from timer callback 2014-08-21 21:10:30 +04:00
Makefile time: provide timezone abbreviations on windows 2013-06-06 16:30:25 +10:00
sleep_test.go runtime: implement monotonic clocks on windows 2014-08-01 11:18:11 +10:00
sleep.go runtime: remove now arg from timer callback 2014-08-21 21:10:30 +04:00
sys_plan9.go os,time: fix Plan 9 build 2012-02-20 12:31:24 +11:00
sys_unix.go all: merge NaCl branch (part 1) 2014-02-25 09:47:42 -05:00
sys_windows.go time: switch to using (uncompressed) zoneinfo zip file 2012-02-19 03:16:20 -05:00
tick_test.go time: add tests for Tick, NewTicker with negative duration 2014-01-06 10:32:07 -08:00
tick.go runtime: use monotonic clock for timers (linux/386, linux/amd64) 2014-02-24 10:57:46 -05:00
time_test.go time: change formatting of microseconds duration to SI modifier 2014-06-12 17:01:13 -07:00
time.go time: change nsec back to int32 2014-07-16 19:26:45 -04:00
zoneinfo_abbrs_windows.go time: provide timezone abbreviations on windows 2013-06-06 16:30:25 +10:00
zoneinfo_plan9.go time: use names for beginning and end of zone transition times 2014-01-31 17:22:10 -08:00
zoneinfo_read.go time: support version 3 zone records 2014-06-03 11:44:17 +09:00
zoneinfo_test.go time: support version 3 zone records 2014-06-03 11:44:17 +09:00
zoneinfo_unix.go all: merge NaCl branch (part 1) 2014-02-25 09:47:42 -05:00
zoneinfo_windows_test.go time: provide timezone abbreviations on windows 2013-06-06 16:30:25 +10:00
zoneinfo_windows.go std lib: fix various typos in comments 2014-05-02 13:17:55 -07:00
zoneinfo.go time: use names for beginning and end of zone transition times 2014-01-31 17:22:10 -08:00