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

Issues with time zones #648

Closed
hrzn opened this issue Dec 1, 2021 · 0 comments
Closed

Issues with time zones #648

hrzn opened this issue Dec 1, 2021 · 0 comments
Assignees
Labels
bug Something isn't working
Projects

Comments

@hrzn
Copy link
Contributor

hrzn commented Dec 1, 2021

We seem to have issues with timezone aware time series, due to: pydata/xarray#1490
Would be nice to see if we can do something about it.

Description written by @Bugdup

DatetimeIndex with timezone information (e.g. DatetimeIndex(['2018-10-26 13:00:00-05:30'], dtype='datetime64[ns, pytz.FixedOffset(-330]',…)) are processed in xarray with numpy engine which is not timezone aware.

The index is then casted as object and it creates issues when plotting because the time scale is not considered as correct by pyplot.

The issue is being tracked by xarray there:Resample not working when time coordinate is timezone aware · Issue #1490 · pydata/xarray , but it does not seem to be moving a lot.

Maybe removing the timezone information as part of a quickfix and reintroducing it when xarray solved it?

@hrzn hrzn created this issue from a note in darts (To do) Dec 1, 2021
@hrzn hrzn added the bug Something isn't working label Dec 1, 2021
@madtoinou madtoinou self-assigned this Nov 8, 2022
@madtoinou madtoinou moved this from To do to In progress in darts Nov 8, 2022
@hrzn hrzn moved this from In progress to In review in darts Nov 8, 2022
darts automation moved this from In review to Done Nov 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
darts
Done
Development

No branches or pull requests

2 participants