time: support for parsing variable time zones #25570
Labels
FrozenDueToAge
WaitingForInfo
Issue is not actionable because of missing required information, which needs to be provided.
Milestone
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
The text was updated successfully, but these errors were encountered: