]> Cypherpunks repositories - gostls13.git/commit
time: Allow Parse and Format to handle time zone offsets with seconds
authorUlf Holm Nielsen <doktor@dyregod.dk>
Wed, 31 Jul 2013 06:11:02 +0000 (16:11 +1000)
committerRob Pike <r@golang.org>
Wed, 31 Jul 2013 06:11:02 +0000 (16:11 +1000)
commitaa38aeaeaf5d9a87b490fa16de9de850a9f5956c
tree3dd6bce835da970f5bb1b005ef5f7b4ae0b67683
parent936cc5e7fa60ef6ea17d2ca0d6df81a8165fb6cf
time: Allow Parse and Format to handle time zone offsets with seconds

Adds layout cases with seconds for stdISO8601 and stdNumTZ with and without colons. Update time.Format to append seconds for those cases.

Fixes #4934.

R=golang-dev, r, bradfitz
CC=golang-dev
https://golang.org/cl/8132044
src/pkg/time/format.go
src/pkg/time/time_test.go