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
Hello, I want to convert local DateTime by parsing string (without having information about the timezone) and location string (like Europe/Paris) to a DateTime following ISO standard (with correct timezone information)
With the information provided here so far, this is more of a question about using the API of package time than a bug report in the package. More people will see your question, and you will get better answers, if you ask on Stack Overflow or another medium suggested at https://golang.org/wiki/Questions rather than on the issue tracker, since we use the issue tracker primarily for tracking bugs.
If it turns out to be a bug or a problem in time after all, please don't hesitate to re-open this and provide more details so we can investigate. Thanks.
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
Hello, I want to convert local DateTime by parsing string (without having information about the timezone) and location string (like
Europe/Paris
) to a DateTime following ISO standard (with correct timezone information)I'm trying this approach:
I tested this on different versions of Go and the results aren't the same.
https://repl.it/repls/MediumpurpleObviousPriority
https://play.golang.org/p/WSG8Nb8R0TF
What am I'm doing wrong?
What did you expect to see?
Consistent outputs regardless Go version.
What did you see instead?
https://repl.it/repls/MediumpurpleObviousPriority
https://play.golang.org/p/WSG8Nb8R0TF
or
The text was updated successfully, but these errors were encountered: