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 649568 - Time shown in the Date and Time panel jumps to UTC time on every minute change
Time shown in the Date and Time panel jumps to UTC time on every minute change
Status: RESOLVED FIXED
Product: gnome-control-center
Classification: Core
Component: Date and Time
3.0.x
Other Linux
: Normal major
: ---
Assigned To: Control-Center Maintainers
Control-Center Maintainers
: 653262 654431 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2011-05-06 13:37 UTC by Jean-François Fortin Tam
Modified: 2011-07-14 11:00 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
datetime: tz_info_from_location(): leave the environment as it was (1.09 KB, patch)
2011-06-24 02:57 UTC, Rui Matos
committed Details | Review

Description Jean-François Fortin Tam 2011-05-06 13:37:07 UTC
0. be on a timezone other than UTC
1. start Date & time
2. wait one minute
3. accelerate to 88 miles per hour
Comment 1 Bastien Nocera 2011-06-22 14:35:41 UTC
Works fine here, tested with Europe/London and Europe/Paris as timezones.
Comment 2 Bastien Nocera 2011-06-23 19:47:54 UTC
*** Bug 653262 has been marked as a duplicate of this bug. ***
Comment 3 Rui Matos 2011-06-24 02:57:27 UTC
Created attachment 190555 [details] [review]
datetime: tz_info_from_location(): leave the environment as it was
Comment 4 Rui Matos 2011-06-24 03:04:05 UTC
The attached patch fixes the problem. The reason Bastien wasn't able to reproduce this is because he's probably testing with glib master which already has this commit:

http://git.gnome.org/browse/glib/commit/?id=de3a3b181a97d43acd29bcdcdbd7406233b7ee9f

and thus only calls getenv() once. With glib version 2.28 the first call for getting the time to display is done before calling tz_info_from_location() but then for all the other calls getenv("TZ") returns "" which forces a fallback to GMT.
Comment 5 Bastien Nocera 2011-07-14 11:00:47 UTC
*** Bug 654431 has been marked as a duplicate of this bug. ***