From f1810bc17c193078a748e85183ade53cf155eaa7 Mon Sep 17 00:00:00 2001 From: Neroth Date: Thu, 9 Aug 2012 13:30:04 +0200 Subject: [PATCH] Fix forecast --- src/extension.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/extension.js b/src/extension.js index f6eeef5..cdd0c6a 100644 --- a/src/extension.js +++ b/src/extension.js @@ -1146,7 +1146,7 @@ WeatherMenuButton.prototype = { comment = this.get_weather_condition(code); let forecastDate = new Date(forecastData.date); - let dayLeft = Math.round((actualDate.getTime()-forecastDate.getTime())/1000/60/60/24); + let dayLeft = Math.floor((actualDate.getTime()-forecastDate.getTime())/1000/60/60/24); let date_string = _("Today"); if(dayLeft == -1)