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

time: Unix docs say "UTC" but returns Local, without calculating timezone #11938

Closed
akavel opened this issue Jul 30, 2015 · 1 comment

Comments

Projects
None yet
2 participants
@akavel
Copy link
Contributor

commented Jul 30, 2015

In docs for func Unix(sec int64, nsec int64) Time, it is stated: "sec seconds and nsec nanoseconds since January 1, 1970 UTC". The calculations inside don't seem to take Local timezone into account (unixToInternal is a const), but Time{loc: Local} is returned. I think it's not right?

Similarly in Time.Unix(), and many other different places related to "Unix time".

@akavel

This comment has been minimized.

Copy link
Contributor Author

commented Jul 30, 2015

Bad understanding on my side, sorry.

@akavel akavel closed this Jul 30, 2015

@akavel akavel reopened this Jul 30, 2015

@akavel akavel closed this Jul 30, 2015

@golang golang locked and limited conversation to collaborators Aug 5, 2016

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
You can’t perform that action at this time.