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

get() returns timestamps outside of request window (UTC) #61

Open
xmentos opened this issue Jun 12, 2018 · 1 comment
Open

get() returns timestamps outside of request window (UTC) #61

xmentos opened this issue Jun 12, 2018 · 1 comment

Comments

@xmentos
Copy link

xmentos commented Jun 12, 2018

Currently when one uses get() as explained in the readme, the query return Unix timestamps that, if converted to UTC, are outside of the request window because the get() t1 & t2 strings seem to be treated as local time.

It could be fixed if one could pass UTC timestamps for these parameters, or have at least a flag to indicate this (local or utc, ref. Timber). Working with UTC timestamps will allow users to create scripts that work in all timezones without having to hardcode their timezone. See attached files for more details.

pytimber-utc.zip

@rdemaria
Copy link
Owner

The internal CALS Java API uses localtime timestamps. I checked with the experts and there is no way to give as input UTC, so the functionality needs to implemented at the python level. We could implement it inside pytimber...

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

2 participants