World clock applet lacks country Iraq

Bug #204908 reported by AndrewNaoum
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
libgweather
Fix Released
Low
libgweather (Ubuntu)
Triaged
Low
Unassigned

Bug Description

Binary package hint: gnome-panel

In Hardy, if you edit your locations and click Add, Iraq is neither listed under Middle East nor Asia. Even a search for the keyword "Iraq" yields no results.

Revision history for this message
Lars Ljung (larslj) wrote :

Same here, but there is a timezone called Asia/Baghdad.

Changed in libgweather:
status: New → Confirmed
Revision history for this message
AndrewNaoum (anaoum) wrote :

Yes, but that still is not a "Location". ie, it won't populate the longitude & latitude.

Revision history for this message
Sebastien Bacher (seb128) wrote :
Changed in libgweather (Ubuntu):
importance: Undecided → Low
status: Confirmed → Fix Released
Revision history for this message
Sebastien Bacher (seb128) wrote :

doesn't seem listed in jaunty somebody should reopen the GNOME bug if that's still buggy

Changed in libgweather (Ubuntu):
status: Fix Released → New
Changed in libgweather:
status: Unknown → Fix Released
Changed in libgweather:
importance: Unknown → Low
Revision history for this message
Javier Moreno (elpasmo) wrote :

I can confirm this bug is still present in Maverick and is not resolved in the upstream bug.
libgweather1: 2.30.3-0ubuntu1

Changed in libgweather (Ubuntu):
status: New → Confirmed
Changed in libgweather (Ubuntu):
status: Confirmed → Triaged
Revision history for this message
Matt Fischer (mfisch) wrote :

This appears to be fixed for me in 3.4.1-0ubuntu1 (in 12.04). I will mark it Fix Released unless someone disagrees.

Revision history for this message
Matt Fischer (mfisch) wrote :

Correction, Baghdad is still just a timezone, not a location. This bug is still open.

Revision history for this message
D. Charles Pyle (dcharlespyle) wrote :

Bug still affects me on Ubuntu Xenial 16.04.1. Any Iraqi city used automatically gets set to Iran. This has been going on for quite a while? Is there a fix in the pipeline? Workaround?

Revision history for this message
D. Charles Pyle (dcharlespyle) wrote :

Here is a workaround:

1. Open /usr/share/libgweather/Locations.xml as an Administrator using gedit or your other favorite text editor.

2. Find the following text:

    <country>

      <name>Iraq</name>

      <iso-code>IQ</iso-code>
      <fips-code>IZ</fips-code>
      <timezones>
        <timezone id="Asia/Baghdad"/>
      </timezones>
      <tz-hint>Asia/Baghdad</tz-hint>
     </country>

3. Insert the following just between <tx-hint>Asia/Baghdad</tz-hint> and </country>:

     <city>

        <name>Baghdad</name>
        <coordinates>29.561111 34.951667</coordinates>
        <location>
          <name>Baghdad International Air</name>
          <code>SDA</code>
          <coordinates>33.318279 44.416667</coordinates>
        </location>
      </city>

4. Save the file.

This will give you at least Baghdad and gnome-clocks will display the correct time and allow you to find the city in the list. Others can be created and inserted as needed. I am also adding the XML Iraq entry in my location file as an attachment in case the text does not display correctly above when posted.

Revision history for this message
D. Charles Pyle (dcharlespyle) wrote :

Here is the attached file. This is working on my system as I write this.

Revision history for this message
D. Charles Pyle (dcharlespyle) wrote :

Sorry. That should be tz-hint in comment #9 rather than tx-hint in instruction item 3. The xml coding is correct in the actual code snippet.

Revision history for this message
D. Charles Pyle (dcharlespyle) wrote :

One thing else. I saw search results that have SDA as an airport code for that airport, but another search turned up the code BGW. Not sure which one is right at this moment. Anyone on the ground know the right one so that I can update the code?

Revision history for this message
D. Charles Pyle (dcharlespyle) wrote :

The other search also turned up a different latitude and longitude for that airport, too. The second search gave the following coordinates (which differ from the ones given above in the code snippet):

29.561111 34.951667

Revision history for this message
D. Charles Pyle (dcharlespyle) wrote :

Yet another search gave the following:

33.2625008 44.2346001

Revision history for this message
D. Charles Pyle (dcharlespyle) wrote :

The result in comment # 13 is way off. It's actually in Israel. Have no idea how that happened or why that result showed up in the search.

Revision history for this message
D. Charles Pyle (dcharlespyle) wrote :

Corrected attachment with corrected coordinates (sorry about all the posts). Don't use the other one (although it still worked on my system).

Revision history for this message
D. Charles Pyle (dcharlespyle) wrote :

OK, final posting (I could not find a way to edit older posts or I would have just done that instead of multi-posting). A whole lot was wrong (some my fault; got a splitting headache at the moment giving me a bit of brain fog) but I am also attaching a text file of the weather stations listed in a file from the NOAA. The four letter code for the weather station at Baghdad International Airport is ORBB, which I took out of that file just now. The snippet of text to use in instruction number 3 is as follows:

      <city>

        <name>Baghdad</name>
        <coordinates>33.2625008 44.2346001</coordinates>
        <location>
          <name>Baghdad International Airport</name>
          <code>ORBB</code>
          <coordinates>33.2625008 44.2346001</coordinates>
        </location>
      </city>

This should work with both the gnome-clocks app and the gnome-weather app. Information in the NOAA list I attach to this post can be used to make a few more additional Iraqi locations with a little bit of effort at converting the coordinates data.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.