diff --git a/modules/default/weather/weatherobject.js b/modules/default/weather/weatherobject.js index bf8304e720..85cff1e58c 100644 --- a/modules/default/weather/weatherobject.js +++ b/modules/default/weather/weatherobject.js @@ -136,8 +136,8 @@ class WeatherObject { updateSunTime(lat, lon) { const now = !this.date ? new Date() : this.date.toDate(); const times = SunCalc.getTimes(now, lat, lon); - this.sunrise = moment.unix(times.sunrise); - this.sunset = moment.unix(times.sunset); + this.sunrise = moment(times.sunrise); + this.sunset = moment(times.sunset); } /**