-
Notifications
You must be signed in to change notification settings - Fork 3
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 conversions are tied to timezone #5
Comments
I think we should output is as it is stored, so no UTC after getting it from database |
The int should be UNIX and unix should be already UTC since it's the definition of unix but it's always hard to work with timezones etc so not 100% sure about this. |
When storing it already converts to UTC: https://golang.org/pkg/time/#Time.Unix |
So I think you're code from pull request was fine 👍 |
I think it's a hard problem maybe. In your API it would depend in some api's you wan't to return the local time and in some you don't want that. |
Thats quite strange though. We send UTC timestamp but IntToTimeTime converts it to local |
Ok hmm strange maybe set the TZ= environment variable. I always have difficulties with timezone with understanding them. |
I think setting TZ= is maybe a good idea. |
If you use alphine I think it was something like this.
|
IntToTimeTime
for example returns local time. Does it make sense to turn into?The text was updated successfully, but these errors were encountered: