Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Work in Progress: Add ToTimeInDefaultLocation/E #79

Closed
wants to merge 2 commits into from

Conversation

bep
Copy link
Collaborator

@bep bep commented May 30, 2019

No description provided.

heewa and others added 2 commits May 30, 2019 10:44
Go's time parsing uses UTC when the format doesn't have a tiemzone, and
has even weirder behavior when it has a zone name but no numeric offset.
A caller to `cast.ToTime` won't know if the returned time was explicitly
in UTC, or defaulted there, so the caller cannot fix it. These new
functions allow a user to supply a different timezone to default to,
with nil using the local zone.
@bep bep mentioned this pull request May 30, 2019
@bep bep changed the title Add ToTimeInDefaultLocation/E Work in Progress: Add ToTimeInDefaultLocation/E May 30, 2019
@bep
Copy link
Collaborator Author

bep commented May 30, 2019

Replaced by #80

@bep bep closed this May 30, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants