Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

time: regression in Format #23505

Closed
dsymonds opened this issue Jan 22, 2018 · 3 comments

Comments

Projects
None yet
3 participants
@dsymonds
Copy link
Member

commented Jan 22, 2018

What version of Go are you using (go version)?

go version devel +cd97aca3fd Mon Jan 1 03:45:23 2018 +0000 darwin/amd64

Does this issue reproduce with the latest release?

play.golang.org (currently go1.9.2) does not show this issue.

What did you do?

See https://play.golang.org/p/1VcPUlPk_3. Here's the relevant part:

t := time.Date(2016, 8, 18, 16, 31, 33, 0, time.UTC)
fmt.Println(t.Format("20060102_1504"))

In previous versions of Go, and in the playground, it produces 20160818_1631. In my dev version, it produces 20160818 83331.

@dsymonds

This comment has been minimized.

Copy link
Member Author

commented Jan 22, 2018

I just updated to tip, and it looks like it was already fixed.

@dsymonds

This comment has been minimized.

Copy link
Member Author

commented Jan 22, 2018

Yep, 8776be1 broke it and 86cca11 fixed it.

@dsymonds dsymonds closed this Jan 22, 2018

@mvdan

This comment has been minimized.

Copy link
Member

commented Jan 22, 2018

For completeness sake, this is a dup of #23259.

@golang golang locked and limited conversation to collaborators Jan 22, 2019

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
You can’t perform that action at this time.