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 354661 - time-admin fails to lookup "Europe/Helsinki" as time zone value
time-admin fails to lookup "Europe/Helsinki" as time zone value
Status: RESOLVED FIXED
Product: gnome-system-tools
Classification: Deprecated
Component: s-t-b
2.15.x
Other Linux
: Normal minor
: ---
Assigned To: Carlos Garnacho
: 366478 587769 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2006-09-06 17:35 UTC by Matti Lindell
Modified: 2009-08-19 06:45 UTC
See Also:
GNOME target: ---
GNOME version: 2.15/2.16


Attachments
Proposed patch (1.55 KB, patch)
2008-12-12 18:33 UTC, Michael Terry
committed Details | Review

Description Matti Lindell 2006-09-06 17:35:59 UTC
Please describe the problem:
If Europe/Helsinki is set as time zone, time-admin sets the value to Europe/Mariehamn for some reason when program is launched on second time.

Steps to reproduce:
1. Launch time-admin and set time zone as Europe/Helsinki
2. Close time-admin 
3. Launch time-admin again and view time zone value


Actual results:
Time zone value is set to Europe/Mariehamn

Expected results:
Time zone value should be Europe/Helsinki

Does this happen every time?
Yes.

Other information:
Comment 1 Carlos Garnacho 2006-11-14 15:50:31 UTC
The issue is fixed in system-tools-backends HEAD, thanks for the bug report!
Comment 2 Carlos Garnacho 2006-11-14 17:35:13 UTC
*** Bug 366478 has been marked as a duplicate of this bug. ***
Comment 3 Savvas Radević 2008-11-07 18:39:35 UTC
This bug is back, in my case: http://bugzilla.gnome.org/show_bug.cgi?id=366478
Comment 4 Savvas Radević 2008-11-07 18:41:42 UTC
Sorry, I forgot to post my current info:
Gnome 2.24.1
Ubuntu 8.10 Intrepid Ibex

$ apt-cache policy gnome-system-tools gnome-about 
gnome-system-tools:
  Installed: 2.22.1-0ubuntu1
  Candidate: 2.22.1-0ubuntu1

gnome-about:
  Installed: 1:2.24.1-0ubuntu1
  Candidate: 1:2.24.1-0ubuntu1
Comment 5 Martin Pitt 2008-11-29 11:56:18 UTC
Reopening, Savvas can still reproduce this.
Comment 6 Michael Terry 2008-12-12 18:33:00 UTC
Created attachment 124544 [details] [review]
Proposed patch

Here's a patch.  The problem is that there are two zoneinfo's that are identical, but system-tools-backend just picks the first one in /usr/share/zoneinfo/zone.tab that matches.

So, for Mariehamn and Helsinki, Mariehamn comes first, and you always get Mariehamn for both.  For Belgrade and Sarajevo (from bug 366478), Sarajevo is first.

This used to be fixed by checking if /etc/localetime is a symbolic link, and using the zoneinfo it points to.  But nowadays, /etc/localetime is a copy, not a link.

So, I've added a new backend target for timezones (debian-4.0) that just checks /etc/timezone and calls it a day.

According to http://wiki.debian.org/TimeZoneChanges, Etch and later use /etc/timezone as the preferred location for that info.  Etch is Debian 4.0.

According to https://bugs.edge.launchpad.net/ubuntu/+source/tzdata/+bug/209429/comments/16, Ubuntu Gutsy and later do the same thing.

So my patch changes the backend for debian-4.0 (Etch) and ubuntu-7.04 (Feisty) and up.  This patch is against system-tools-backends 2.6.0 in Ubuntu Hardy, but I assume it will mostly apply, as it is small.
Comment 7 Michael Terry 2008-12-12 19:09:53 UTC
I should have said "Ubuntu *Edgy* and later do the same thing".
Comment 8 Savvas Radević 2009-01-21 14:38:36 UTC
Michael, is the patch tested? I was assuming in launchpad about this (last comments #6, #8):
https://bugs.launchpad.net/gst/+bug/43644

So it seems to be system-tools-backend fault then?
Comment 9 Michael Terry 2009-01-21 14:46:05 UTC
Yes, it's tested by me, on Ubuntu Hardy.

And thanks for reminding me that the fault is in system-tools-backend.  I'll switch the component of this bug away from time-admin.
Comment 10 Savvas Radević 2009-01-21 14:51:19 UTC
From what I see, there's a similar patch in debian, but it doesn't include the new section debian-4.0 you have applied.
File debian/patches/01_debian_4.0patch has "debian-3.0" for debian-4.0 and -5.0 and -testing.

I've notified Carlos Garnacho about this patch and comments, hopefully it will be included in time!
Comment 11 Savvas Radević 2009-01-21 15:34:54 UTC
Carlos has replied, unfortunately g-s-t and s-t-b projects need a new maintainer:
http://blogs.gnome.org/carlosg/2008/02/01/two-new-children-in-cookieville/

He has kindly offered guidance. If anyone wants to volunteer to take care of g-s-t, please contact him: carlosg at gnome

There's an IRC channel as well: irc.gnome.org #gst
irc://irc.gnome.org/gst
Comment 12 Savvas Radević 2009-04-29 15:51:18 UTC
I have tested the patch on ubuntu 9.04 with minimal changes it works, thanks Michael!!
I can now see "Europe/Belgrade" instead of the false "Europe/Sarajevo":
http://img50.imageshack.us/img50/7452/screenshottimeanddatese.png

https://bugs.launchpad.net/gst/+bug/43644/comments/10
Comment 13 era+gnome 2009-07-05 10:26:01 UTC
*** Bug 587769 has been marked as a duplicate of this bug. ***
Comment 14 Milan Bouchet-Valat 2009-07-26 10:31:43 UTC
We have to commit this, but the system-tools-backends are hosted on freedesktop.org where I have not access. I'll try to see what I can do.
Comment 15 era+gnome 2009-08-08 12:01:56 UTC
@Milan Bouchet-Valat: the page http://system-tools-backends.freedesktop.org/contact.html says to contact carlosg, have you been in touch with him?
Comment 16 Milan Bouchet-Valat 2009-08-15 22:59:06 UTC
I have, but when it comes to those old projects, he isn't very quick to answer. I guess I'll have to ping him on IRC... ;-)

Don't worry, there's still a chance it can land in the next Ubuntu release.
Comment 17 Milan Bouchet-Valat 2009-08-18 23:17:31 UTC
Eventually pushed as d3ce5e5f0f210a2f9c868526257a0e1444f504a2! I hope to release it soon. Thanks, and I hope that will work for newer Debian releases - else they'll come and discuss when they need to update their patch. ;-)
Comment 18 Savvas Radević 2009-08-19 06:45:22 UTC
About debian, as far as I can see, they removed all the version-dependent logic:
http://packages.debian.org/changelogs/pool/main/s/system-tools-backends/current/changelog#versionversion2.6.0-6

 system-tools-backends  (2.6.0-6) unstable; urgency=low

   * 01_debian_4.0.patch: completely remove all the brain-dead version
     logic. The Debian version corresponds to the version the package is
     shipped in, that’s all.

There is also a patch available to fix it:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=526940