This commit is contained in:
Ashish Tank 2020-12-09 15:27:36 +01:00
parent c675421a6a
commit 85b6df3738

View File

@ -374,7 +374,7 @@ Module.register("weatherforecast", {
hour = moment(forecast.dt_txt, "YYYY-MM-DD hh:mm:ss").toDate().getHours(); hour = moment(forecast.dt_txt, "YYYY-MM-DD hh:mm:ss").toDate().getHours();
} else { } else {
day = moment(forecast.dt, "X").format("ddd"); day = moment(forecast.dt, "X").format("ddd");
hour = moment(forecast.dt, "X").format("H"); hour = moment(forecast.dt, "X").toDate().getHours();
} }
if (day !== lastDay) { if (day !== lastDay) {