Incorrect, shifted data after midnight
patriiiiiiiiiick opened this issue · 6 comments
I have observed incorrect data being displayed and a shift in the days, in the hour after midnight. I will try to take corresponding screenshots later, hopefully tonight. I am just giving you a head start, in case you want.
Could this be caused by daylight saving time?
Thanks for the heads!
To be sure:
- is the bug about hourly forecast only?
- does it happen only when the current time is specifically after just after midnight? Or can you already see it in the current forecast?
If you manage to take a screenshot, please enable the debug logging for the integration to get the raw JSON data as well.
Daylight saving time is not my main suspect on this. The logic to handle the data is probably where the bug is: their API does not put a timestamp on the hourly forecast, just the hour it is related to (i.e. 'hour'='18'
). The midnight case looks like the perfect edge case for a bug like this.
I'll also try to capture this with a script tonight
I managed to reproduce the error: when the current time is between midnight and 1 AM, all the hourly forecasts are shifted by +1 day.
This is fixed and released with version 0.2.15. Other changes that require Home Assistant 2024.6 were released in the same version so it will only work with Home Assistant 2024.6 or newer