You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
localTime:=time.Now().Local().Format("2006-01-02T15:04:05Z07:00MST")
// localTime = "2020-06-15T13:47:58+10:00Australian Eastern Standard Time"time.Parse("2006-01-02T15:04:05Z07:00MST", localTime)
// error = parsing time "2020-06-15T13:44:58+10:00Australian Eastern Standard Time" as "2006-01-02T15:04:05Z07:00MST": cannot parse "Australian Eastern Standard Time" as "MST"
Perhaps it should be an inverse, but unfortunately it isn't, and it never has been. When printing, MST can print the full name of a time zone, as it does here. When parsing, MST can only match a three to five letter code such as AEST.
Go 1.14
https://play.golang.org/p/dfC-Z1frms5
Should the operation above be the inverse and hence return the original value back instead of producing an error?
The text was updated successfully, but these errors were encountered: