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

TIMESTAMP_MILLIS and TIMESTAMP_MICROS are affected by system Timezone #114

Open
SeanLMcCullough opened this issue Sep 8, 2020 · 0 comments

Comments

@SeanLMcCullough
Copy link

This may or may not be intended functionality, but the implementation of the TIMESTAMP_MILLIS and TIMESTAMP_MICROS use the Date.getTime() method which offsets for the system timezone. This leads to the library offsetting timestamps by the UTC offset of the system. This seems like unexpected behaviour.

This can be worked around using the TZ=UTC environment variable.

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

No branches or pull requests

1 participant