]> Cypherpunks repositories - gostls13.git/commit
time: revert CL 78735 (was: space padding using underscore)
authorIan Lance Taylor <iant@golang.org>
Wed, 3 Jan 2018 18:24:29 +0000 (10:24 -0800)
committerIan Lance Taylor <iant@golang.org>
Wed, 3 Jan 2018 20:50:44 +0000 (20:50 +0000)
commit86cca11ffde0a4a353f0cc7bf7cfcdffd7929398
treeb0ce4afebc5e1db6ac330031f5e3cab406dc1ae2
parent74d8340cf6d8fc958992ded4ffb6c4a53327dfa1
time: revert CL 78735 (was: space padding using underscore)

CL 78735 description:

    time: add space padding layout strings(using underscore) for not only day but others

    As mentioned in #22802, only day component of layout string has space
    padding(represented by one underscore before its placeholder). This
    commit expands the rule for month, hour, minute and second.

    Updates #22802 (maybe fixes it)

Revert this CL because it breaks currently working formats that happen
to use underscores.

Fixes #23259

Change-Id: I64acaaca9b5b74785ee0f0be7910574e87daa649
Reviewed-on: https://go-review.googlesource.com/85998
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Reviewed-by: Rob Pike <r@golang.org>
src/time/format.go
src/time/format_test.go