]> Cypherpunks repositories - gostls13.git/commit
time: fix handling of -07, handle Z07
authorIan Lance Taylor <iant@golang.org>
Mon, 30 Nov 2015 17:21:34 +0000 (09:21 -0800)
committerIan Lance Taylor <iant@golang.org>
Wed, 2 Dec 2015 01:35:09 +0000 (01:35 +0000)
commit3b3f422afed632a7d332e03444a908abc170d402
tree18cfadae4b99b863e7859b3cd1bfcd2893f86664
parent38f8e4407c3626a9509760089b82eecb4d0f2d48
time: fix handling of -07, handle Z07

The existing code has partial support for -07 (just the hours of a time
zone offset).  Complete the support, add support for Z07, and add a few
tests.

Fixes #13426.

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