]> Cypherpunks repositories - gostls13.git/commit
[release-branch.go1.17] time: propagate "," separator for fractional seconds into...
authorkorzhao <korzhao95@gmail.com>
Sat, 28 Aug 2021 21:21:17 +0000 (05:21 +0800)
committerIan Lance Taylor <iant@golang.org>
Wed, 15 Sep 2021 21:59:48 +0000 (21:59 +0000)
commite79c297fa80c9ddd5d3037fa1465664eea0f53c0
tree2ce02d60f045b71f3822f9f127b6a49768da0f2f
parent21a4e67ad58e3c4a7c5254f60cda5be5c3c450ff
[release-branch.go1.17] time: propagate "," separator for fractional seconds into Format

In CL 300996 that fixed issue #6189, we made Parse recognize
"," as a separator for fractional seconds.
However, we didn't modify Format to propagate the separator
verbatim from Parse. Without this change, we break prior
functionality that relied on a comma being used in Format.

For #48037
Fixes #48177

Change-Id: I6565a25e8657ca3747a58b25acba58f27cdcddc0
Reviewed-on: https://go-review.googlesource.com/c/go/+/345438
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Emmanuel Odeke <emmanuel@orijtech.com>
Trust: Cherry Mui <cherryyz@google.com>
(cherry picked from commit e1c3f2158fe3129fb44cc92423cfa41e7b6d472c)
Reviewed-on: https://go-review.googlesource.com/c/go/+/350149
Trust: Ian Lance Taylor <iant@golang.org>
src/time/format.go
src/time/format_test.go