diff --git a/apps/timecal/timecal.app.js b/apps/timecal/timecal.app.js index ee6ab2161..20b99d510 100644 --- a/apps/timecal/timecal.app.js +++ b/apps/timecal/timecal.app.js @@ -82,6 +82,7 @@ class TimeCalClock{ // }); // require("weather").get = undefined; + const d = this.date ? this.date : new Date(); this.hasWeather = this.settings().showWeather && require('weather') && require('weather').get(); const prevCenterX = this.dtCenterX; if(this.hasWeather){ @@ -325,4 +326,4 @@ var _setTime = setTime; var setTime = function(t) { _setTime(t); timeCalClock.draw(true); -}; \ No newline at end of file +};