Skip to content

time: support for parsing variable time zones #25570

@subtlepseudonym

Description

@subtlepseudonym

I'm running go1.10 darwin/amd64

What did you do?

I attempted to parse "0800 EST5EDT" using a custom time format "1500 MST7MDT" and only the "EST" portion of the variable timezone was recognized by time.Parse().

What did you expect to see?

A correctly parsed *time.Time type with no errors returned.

What did you see instead?

An error was returned stating that the "5EDT" portion of the variable timezone didn't match the format's "7MDT".

https://play.golang.org/p/hF01Thqr3p6

Metadata

Metadata

Assignees

No one assigned

    Labels

    FrozenDueToAgeWaitingForInfoIssue is not actionable because of missing required information, which needs to be provided.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions