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

Support timestamp with different timezone in _convert_timestamp #112

Closed
kaheicanaan opened this issue Jun 23, 2020 · 0 comments · Fixed by #113
Closed

Support timestamp with different timezone in _convert_timestamp #112

kaheicanaan opened this issue Jun 23, 2020 · 0 comments · Fixed by #113
Labels
enhancement New feature or request
Milestone

Comments

@kaheicanaan
Copy link
Contributor

When I write a pd.DataFrame (with timezone in timestamp as index) into InfluxDB, an error was raised:
TypeError: Timestamp subtraction must have the same timezones or no timezones
at

ns = (timestamp - EPOCH).total_seconds() * 1e9

It would be better if the API converts timezone to UTC automatically.

@bednar bednar added this to the 1.9.0 milestone Jun 23, 2020
@bednar bednar added the enhancement New feature or request label Jun 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants