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 425910 - clock doesn't update in response to configuration tool
clock doesn't update in response to configuration tool
Status: RESOLVED FIXED
Product: gnome-panel
Classification: Other
Component: clock
unspecified
Other Linux
: Normal normal
: ---
Assigned To: Panel Maintainers
Panel Maintainers
Depends on:
Blocks:
 
 
Reported: 2007-04-03 16:50 UTC by Ray Strode [halfline]
Modified: 2007-05-01 11:41 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
this patch seems to address the issue (1.87 KB, patch)
2007-04-03 16:54 UTC, Ray Strode [halfline]
committed Details | Review

Description Ray Strode [halfline] 2007-04-03 16:50:57 UTC
I got a downstream bug report here:

https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=230832

where the user noticed it would take up to a full minute for changes made by going to "Adjust Date & Time" to take affect.
Comment 1 Ray Strode [halfline] 2007-04-03 16:54:10 UTC
Created attachment 85773 [details] [review]
this patch seems to address the issue

The above patch adds a child watch to the config tool run by "Adjust Date & Time" so that we unconditionally force a refresh when it exits.

This isn't a perfect fix.  It won't handle the case where the config tool changes the time but doesn't exit.  On the other hand, it seems to be good enough for system-config-date, which just has an [OK] button that applies the settings and exits the program.
Comment 2 Ray Strode [halfline] 2007-04-03 19:46:04 UTC
I ran it again from a terminal and got this output when I clicked [OK]:

Traceback (most recent call last):
  • File "/usr/share/system-config-date/scdMainWindow.py", line 78 in ok_clicked
    self.apply ()
  • File "/usr/share/system-config-date/scdMainWindow.py", line 191 in apply
    self.timezoneBackend.writeConfig(timezone, utc, arc)
  • File "/usr/share/system-config-date/timezoneBackend.py", line 52 in writeConfig
    shutil.copyfile(fromFile, "/etc/localtime")
  • File "/usr/lib/python2.5/shutil.py", line 46 in copyfile
    fsrc = open(src, 'rb')
IOError: [Errno 2] No such file or directory: '/usr/share/zoneinfo/America/New York'

creating a symlink from New_York in that directory to a New\ York made everything start working.
Comment 3 Ray Strode [halfline] 2007-04-03 19:47:34 UTC
grr, ignore comment 2.

It was meant for a different bug,

https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=235064
Comment 4 Vincent Untz 2007-05-01 11:41:55 UTC
Thanks!