Skip to content

time: Parse does not parse format "1504059999" #23134

@tehsphinx

Description

@tehsphinx

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

go version go1.9.2 darwin/amd64

Does this issue reproduce with the latest release?

go 1.9.2 is currently the latest release

What operating system and processor architecture are you using (go env)?

darwin/amd64

What did you do?

I try to parse a time format without any punctuation. Date is not of importance here.

time.Parse("1504059999", "0244541440")

https://play.golang.org/p/-YxQX44J8F

What did you expect to see?

0000-01-01 02:44:54.144 +0000 UTC

What did you see instead?

parsing time "0244541440" as "1504059999": cannot parse "1440" as "9999"

Metadata

Metadata

Assignees

No one assigned

    Labels

    FrozenDueToAgeNeedsDecisionFeedback is required from experts, contributors, and/or the community before a change can be made.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions