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

Python client prints wrong timestamps to fetched data #4

Open
Mikkolehtimaki opened this issue Feb 19, 2019 · 0 comments
Open

Python client prints wrong timestamps to fetched data #4

Mikkolehtimaki opened this issue Feb 19, 2019 · 0 comments

Comments

@Mikkolehtimaki
Copy link

Mikkolehtimaki commented Feb 19, 2019

Run the query to get data for 8.8.2018 14:00.

./fmiopendata --stored_query=fmi::observations::weather::multipointcoverage --bbox=19,59,20,60 --start=2018-08-08T14:00:00Z --end=2018-08-08T14:00:00Z data

Result displays data as '2018-08-08T17:00:00', which is a three hour offset. Reason seems to be the timestamp conversion function.

The correct function to use should probably be (in python 3.7 at least)
temporal_pos = datetime.datetime.utcfromtimestamp(timestamp)

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