[gnome-weather] Fix missing forecast
- From: Giovanni Campagna <gcampagna src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-weather] Fix missing forecast
- Date: Mon, 15 Feb 2016 20:45:59 +0000 (UTC)
commit a295755fc8c893f2f837e8d62277915e50e3613d
Author: Giovanni Campagna <gcampagna src gnome org>
Date: Mon Feb 15 12:25:05 2016 -0800
Fix missing forecast
Based on a patch by vgb <vbg openmailbox org>.
https://bugzilla.gnome.org/show_bug.cgi?id=757186
src/app/forecast.js | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/app/forecast.js b/src/app/forecast.js
index 0456273..d63c2cd 100644
--- a/src/app/forecast.js
+++ b/src/app/forecast.js
@@ -66,12 +66,13 @@ const ForecastBox = new Lang.Class({
let datetime = GLib.DateTime.new_from_unix_local(date);
if (Util.arrayEqual(now.get_ymd(), datetime.get_ymd())) {
+ ret.push(info);
current = datetime;
break;
}
}
- for ( ; i < infos.length; i++) {
+ for (i++ ; i < infos.length; i++) {
let info = infos[i];
let [ok, date] = info.get_value_update();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]