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

Resample is not timezone aware #384

Open
paradox460 opened this issue Mar 5, 2024 · 2 comments
Open

Resample is not timezone aware #384

paradox460 opened this issue Mar 5, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@paradox460
Copy link

Describe the bug
If using an offset timezone, say, -0700, and running resample on daily binned values, the values will display with an offset of 7 hours before the bin should start.

Ex: a bin for March 5th would show as March 4 @ 17:00

@paradox460 paradox460 added the bug Something isn't working label Mar 5, 2024
@dbuezas
Copy link
Owner

dbuezas commented Mar 5, 2024

For the record, this is about using home assistant in a non gmt-0 time zone (not using time offset)

@deltamelter
Copy link

Plotly graph certainly looks nicer than Apexchart version, but one of the data series is not being interpreted correctly.
Coloured bars are from source in UTC with "Z" notation, the grey bars that they overlay are from an adjusted source (+1:00). Plotly isn't respecting the timezone. Everything else in config looks the same.

- start_time: '2024-04-03T16:00:00+01:00'
  end_time: '2024-04-03T17:00:00+01:00'
  price_pence_per_kwh: 6.604500000000001
- start: '2024-04-03T15:00:00+00:00'
  end: '2024-04-03T15:30:00+00:00'
  value_inc_vat: 0.247485
- start: '2024-04-03T15:30:00+00:00'
  end: '2024-04-03T16:00:00+00:00'
  value_inc_vat: 0.26271

image
image

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
None yet
Development

No branches or pull requests

3 participants