]> Cypherpunks repositories - gostls13.git/commit
time: add support for parsing timezones denoted by sign and offset
authorMichael Kasch <michael.kasch@gmail.com>
Fri, 2 Mar 2018 18:03:21 +0000 (19:03 +0100)
committerBrad Fitzpatrick <bradfitz@golang.org>
Thu, 8 Mar 2018 17:15:35 +0000 (17:15 +0000)
commit9f2c611fa7cccfacd317b88eff14d3ba64e855ff
tree7782b30892dc03ed686ac25ad21842fb269f250d
parent3d69ef37b8b3f7db8162689c88180781612b83c7
time: add support for parsing timezones denoted by sign and offset

IANA Zoneinfo does not provide names for all timezones. Some are denoted
by a sign and an offset only. E.g: Europe/Turkey is currently +03 or
America/La_Paz which is -04 (https://data.iana.org/time-zones/releases/tzdata2018c.tar.gz)

Fixes #24071

Change-Id: I9c230a719945e1263c5b52bab82084d22861be3e
Reviewed-on: https://go-review.googlesource.com/98157
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/time/format.go
src/time/format_test.go