[gnome-weather] Workaround serialization without icao libgweather issue
- From: Christopher Davis <christopherdavis src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-weather] Workaround serialization without icao libgweather issue
- Date: Wed, 23 Jun 2021 21:35:14 +0000 (UTC)
commit de6fd1a88d3f4004555738f5083d98700b4c3f0d
Author: AsciiWolf <mail asciiwolf com>
Date: Thu Jun 17 13:28:16 2021 +0200
Workaround serialization without icao libgweather issue
This workarounds libgweather#84
src/app/city.js | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/src/app/city.js b/src/app/city.js
index 7e9fa74..3777103 100644
--- a/src/app/city.js
+++ b/src/app/city.js
@@ -235,7 +235,8 @@ var WeatherWidget = GObject.registerClass({
this._apparentLabel.label = _('Feels like %.0f°').format(apparentValue);
let forecasts = info.get_forecast_list();
- let tz = GLib.TimeZone.new(info.location.get_timezone().get_tzid());
+ let coords = info.location.get_coords();
+ let tz = GLib.TimeZone.new(GWeather.Location.get_world().find_nearest_city(coords[0],
coords[1]).get_timezone().get_tzid());
for (let t of ['hourly', 'daily'])
this._forecasts[t].update(forecasts, tz);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]