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 734272 - Timezone for Location Makassar is picked as Asia/Jakarta
Timezone for Location Makassar is picked as Asia/Jakarta
Status: RESOLVED FIXED
Product: libgweather
Classification: Core
Component: general
3.12.x
Other Linux
: Normal normal
: future
Assigned To: libgweather-maint
libgweather-maint
Depends on:
Blocks:
 
 
Reported: 2014-08-05 10:59 UTC by Kai Lüke
Modified: 2014-08-19 15:19 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Kai Lüke 2014-08-05 10:59:41 UTC
Despite having Asia/Makassar as tz-hint, the time zone for Makassar is taken wrongly as Asia/Jakarta. This happened in usage via gnome-clocks and might(?) be due to the position of tz-hint in the xml data structure or usage through gnome-clocks. No idea what goes wrong.

stdout.printf ("Values: %s, %s\n", location.get_name(), location.get_timezone.get_tzid());
results to:
Values: Makassar, Asia/Jakarta

Excerpt of data/Locations.xml.in:

<_name>Indonesia</_name>
      <!-- Could not find information about the following stations,
           which may be in Indonesia:
           WADD WALL WARR WARS WIDD WIPT 
        -->
      <iso-code>ID</iso-code>
      <fips-code>ID</fips-code>
      <timezones>
        <timezone id="Asia/Jakarta">
          <!-- The timezone on the western islands of Indonesia. The
               name in Indonesian is "Waktu Indonesia Bagian Barat".
            -->
          <_name>Western Indonesia Time</_name>
          <obsoletes>Asia/Pontianak</obsoletes>
        </timezone>
        <timezone id="Asia/Makassar">
          <!-- The timezone on the central islands of Indonesia. The
               name in Indonesian is "Waktu Indonesia Bagian Tengah".
            -->
          <_name>Central Indonesia Time</_name>
        </timezone>
        <timezone id="Asia/Jayapura">
          <!-- The timezone on the eastern islands of Indonesia. The
               name in Indonesian is "Waktu Indonesia Bagian Timur".
            -->
          <_name>Eastern Indonesia Time</_name>
        </timezone>
      </timezones>
      <tz-hint>Asia/Jakarta</tz-hint>
      <city>
        <!-- The capital of Indonesia -->
        <_name>Jakarta</_name>
        <coordinates>-6.174444 106.829444</coordinates>
        <location>
          <name>Soekarno-Hatta Airport</name>
          <code>WIII</code>
          <coordinates>-6.116667 106.650000</coordinates>
        </location>
      </city>
      <city>
        <!-- A city in Indonesia -->
        <_name>Makassar</_name>
        <coordinates>-5.140000 119.422100</coordinates>
        <location>
          <name>Hasanuddin Airport</name>
          <code>WAAA</code>
          <tz-hint>Asia/Makassar</tz-hint>
          <coordinates>-5.066667 119.550000</coordinates>
        </location>
      </city>
      <city>
Comment 1 Giovanni Campagna 2014-08-19 15:19:19 UTC
This turned out to be a problem in the location database that affected
several more cities.

Fixed in master