Fix wrong day labels in envcanada forecast (#2992)

Fixes #2987

lastDate isnt a unix date, but just a normal moment-date

Co-authored-by: veeck <michael@veeck.de>
This commit is contained in:
Veeck
2023-01-07 20:12:23 +01:00
committed by GitHub
parent 4fc38bd5bb
commit a975b44fbb
2 changed files with 3 additions and 1 deletions

View File

@@ -336,7 +336,7 @@ WeatherProvider.register("envcanada", {
// Add 1 to the date to reflect the current forecast day we are building
lastDate = lastDate.add(1, "day");
weather.date = moment.unix(lastDate);
weather.date = moment(lastDate);
// Capture the temperatures for the current Element and the next Element in order to set
// the Min and Max temperatures for the forecast