mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-08-22 05:07:05 +00:00
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:
@@ -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
|
||||
|
Reference in New Issue
Block a user