From 85b6df3738b442e87129be200b787ed405e87c7d Mon Sep 17 00:00:00 2001 From: Ashish Tank Date: Wed, 9 Dec 2020 15:27:36 +0100 Subject: [PATCH] Issue #2221 --- modules/default/weatherforecast/weatherforecast.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/default/weatherforecast/weatherforecast.js b/modules/default/weatherforecast/weatherforecast.js index d797625c..53eee5dd 100644 --- a/modules/default/weatherforecast/weatherforecast.js +++ b/modules/default/weatherforecast/weatherforecast.js @@ -374,7 +374,7 @@ Module.register("weatherforecast", { hour = moment(forecast.dt_txt, "YYYY-MM-DD hh:mm:ss").toDate().getHours(); } else { day = moment(forecast.dt, "X").format("ddd"); - hour = moment(forecast.dt, "X").format("H"); + hour = moment(forecast.dt, "X").toDate().getHours(); } if (day !== lastDay) {