gnome-openweather icon indicating copy to clipboard operation
gnome-openweather copied to clipboard

Fix repeat of day in forecast view

Open e2e8 opened this issue 5 months ago • 1 comments

When using openweathermap, the previous code would repeat the forecast for a time slot when the forecast data would roll over from one day into the next. This pr fixes that issue by letting the loop go onto the next iteration to pick up the data from the first index of the next day.

For example if it would try to get this.#forecasts[0][8], the old code would reset it to this.#forecasts[0][7] instead of letting it roll over to this.#forecasts[1][0] which is where the correct data really is.

Example of the issue: error Fixed: fixed

This may address #30

e2e8 avatar Sep 02 '24 04:09 e2e8