Skip to content

time: Parse thinks _2006 means _2 followed by 006 #11334

@jayp

Description

@jayp

The time we want to parse is of the format -> HH:MM_YYYYMMDD. Go's time.Parse seems to barf on this format.

time, err := time.Parse("15:04_20060102", "14:38_20150618")

err is not nil:

&time.ParseError{Layout:"15:04_20060102", Value:"14:38_20150618", LayoutElem:"_2", ValueElem:"_20150618", Message:""}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions