After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 559031 - some cities have Unknown timezone
some cities have Unknown timezone
Status: RESOLVED FIXED
Product: libgweather
Classification: Core
Component: locations
2.24.x
Other All
: Normal normal
: 2.22.0
Assigned To: libgweather-maint
libgweather-maint
: 568453 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2008-11-03 02:21 UTC by Dan Winship
Modified: 2009-11-02 17:29 UTC
See Also:
GNOME target: ---
GNOME version: 2.23/2.24


Attachments
Look up for obsolete tzdata identifiers for locations. (4.02 KB, patch)
2009-10-29 17:01 UTC, Philippe Gauthier
none Details | Review
Add a check for obsolete tzdata identifiers used in Locations.xml.in (999 bytes, patch)
2009-10-29 23:28 UTC, Philippe Gauthier
committed Details | Review
Replace obsolete tzdata identifiers in Locations.xml.in (4.05 KB, patch)
2009-11-01 13:13 UTC, Philippe Gauthier
committed Details | Review

Description Dan Winship 2008-11-03 02:21:16 UTC
+++ This bug was initially created as a clone of Bug #559018 +++

It seems that not all the cities listed comes with a timezone attached with it. Some cities such as Paris and New York work fine, they have a timezone attached to them, other cities do not have timezones need to be fixed. Some examples of these are:

Arviat, Nunavut
Yellowknife, NWT
Montreal, Quebec
Radisson, Quebec
Oral, Kazakhstan
Shymkent, Kazakhstan
Qyzylorda, Kazakhstan
Burwash Landing, Yukon
Comment 1 Dan Winship 2009-01-20 18:18:38 UTC
*** Bug 568453 has been marked as a duplicate of this bug. ***
Comment 2 antistress 2009-03-17 17:19:35 UTC
i can confirm that bug on Ubuntu Jaunty alpha with final GNOME 2.26 : Montreal (canada) can't be set
Comment 3 Philippe Gauthier 2009-10-29 17:01:01 UTC
Created attachment 146515 [details] [review]
Look up for obsolete tzdata identifiers for locations.

Patch to look up the `obsoletes' tags in Locations.xml in order to find the appropriate time zone for every location. Hopefully fixes this bug.

An equivalent patch is also proposed as a fix in Ubuntu bug #291853. See https://bugs.launchpad.net/ubuntu/+source/libgweather/+bug/291853
Comment 4 Dan Winship 2009-10-29 17:32:59 UTC
doh. actually, the right fix is that we just shouldn't be using the obsolete timezones.

data/check-timezones.sh (which gets run as part of make check) ought to check this.
Comment 5 Philippe Gauthier 2009-10-29 23:28:11 UTC
Created attachment 146534 [details] [review]
Add a check for obsolete tzdata identifiers used in Locations.xml.in

The script data/check-timezones.sh compares the tzdata identifiers in Locations.xml.in with the system's tzdata, but (at least in case of Ubuntu) the database contains even the timezones that libgweather considers obsolete. The reasons for the differences are well explained in data/README.timezones.

The included patch adds a check for obsolete tzdata identifier that are actually used for some locations. It should then be quite easy to fix the Locations.xml.in file to use the correct timezones.
Comment 6 Philippe Gauthier 2009-11-01 13:13:34 UTC
Created attachment 146682 [details] [review]
Replace obsolete tzdata identifiers in Locations.xml.in

This patch replaces the obsolete tzdata identifiers as per the output of the script updated with attached patch #146534. Should fix bug #559031.
Comment 7 Dan Winship 2009-11-02 17:29:19 UTC
Excellent. Thanks for the debugging and the patch