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

Make sure times are UTC and correctly subtract the timestamp window from the server time #134

Merged
merged 1 commit into from
Nov 24, 2020

Conversation

notsure2
Copy link
Contributor

Fixes #133 and an additional discovered bug.

@cbeuw cbeuw merged commit b7e7bfb into cbeuw:master Nov 24, 2020
@cbeuw
Copy link
Owner

cbeuw commented Nov 24, 2020

Nice catch, thank you! Turns out I completely misused Truncate().

The timezone issue is a bit strange. Golang's doc for Unix() says The result does not depend on the location associated with t., so it's a bit strange that UTC() is needed

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.

Doesn't work properly if server and client timezone differ
2 participants