Skip to content

time: extraneous information in Parse error message for interior element missing leading zero #29912

@tredoe

Description

@tredoe

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

$ go version
go version go1.11.4 darwin/amd64

Does this issue reproduce with the latest release?

Yes

What did you do?

Parsing the time "03:4:05" with layout "15:04:05".

What did you expect to see?

At the last part of the error: cannot parse "4" as "04"

What did you see instead?

cannot parse "4:05" as "04"

Metadata

Metadata

Assignees

No one assigned

    Labels

    NeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions