]> Cypherpunks repositories - gostls13.git/commit
time: genzabbrs.go skips Feb when checking months
authorKenny Grant <kennygrant@gmail.com>
Sat, 21 May 2016 16:19:22 +0000 (17:19 +0100)
committerIan Lance Taylor <iant@golang.org>
Thu, 9 Jun 2016 15:31:08 +0000 (15:31 +0000)
commite2a30b8ffba065ea45bb1e18d1bb584898e3bf11
treebd1a89899f57a4fee7894417d84457bdbbb41025
parent6662897b2a3260393fff9dcf64faf3abfc773181
time: genzabbrs.go skips Feb when checking months

getAbbrs looks like it is checking each month looking for a change
in the time zone abbreviation, but starts in Dec of the previous year
and skips the month of February because of the overflow rules for
AddDate. Changing the day to 1 starts at Jan 1 and tries all months
in the current year. This isn't very important or likely to change
output as zones usually span several months. Discovered when
looking into time.AddDate behavior when adding months.

Change-Id: I685254c8d21c402ba82cc4176e9a86b64ce8f7f7
Reviewed-on: https://go-review.googlesource.com/23322
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/time/genzabbrs.go