Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
GitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
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"
Should the operation above be the inverse and hence return the original value back instead of producing an error?
Perhaps it should be an inverse, but unfortunately it isn't, and it never has been. When printing,
Closing because this is expected behavior.