Red Hat Bugzilla – Bug 98092
changing timezone after installation causes "Date & Time" GUI to fail
Last modified: 2007-04-18 12:55:19 EDT
Description of problem: Changing the timezone after initial system installation
causes redhat-config-date to fail with a python error (which also means the
"Date & Time" GUI from the system menu will no longer come up).
Version-Release number of selected component (if applicable): RH 8.0
How reproducible: Every time
Steps to Reproduce:
1.Bring up GUI: System Settings -> Date & Time to verify that it comes up
2.Use the command line to bring up the same gui to verify that it comes up
*** Note that not all continents are shown in the GUI (Japan, GMT, etc.) which
means they are not available for selection by the user.
3.Change the timezone to GMT manually by:
root> timeconfig Etc/GMT
(We would not have done this manually if GMT showed up in the "Date & Time" GUI.)
4. Reboot the system to see that the timezone is now showing GMT.
5. Bring up the GUI: System Settings -> Date & Time.
Nothing will happen becuase the GUI will never come up (it has actually crashed)
6. Use the command line to bring up the GUI and see the actual python error:
Traceback (most recent call last):
File "/usr/share/redhat-config-date/redhat-config-date.py", line 35, in ?
File "/usr/share/redhat-config-date/mainWindow.py", line 181, in __init__
self.timezonePage = timezone_gui.timezonePage()
File "/usr/share/redhat-config-date/timezone_gui.py", line 50, in __init__
self.tz = TimezoneMap(zonetab, self.default, map=path)
File "/usr/share/redhat-config-date/timezone_map_gui.py", line 139, in __init__
File "/usr/share/redhat-config-date/timezone_map_gui.py", line 180, in setCurrent
AttributeError: 'NoneType' object has no attribute 'tz'
You can use redhat-config-time instead of redhat-config-date and see the same
This bug exists on systems that have the latest redhat network patches as well
as systems created several months back.
Initially, our machines were installed with timezone set to "America/New_York".
When I brought up the "Date & Time" GUI, selections for GMT and other
continents (like Japan) are not available for selection. When you look at the
"Date & Time" code, please ensure that it displays all continent timezones that
are in the timezone directory and its subdirectories. (These subdirectories were
available during installation, but were not available through the "Date & Time"
GUI after installation.)
Note: After seeing the python error, you change the timezone back to the
original installation timezone and the "Date & Time" GUI will again be displayed.
root> timeconfig America/New_York
(the "Date & Time GUI will successfully display again)
*** This bug has been marked as a duplicate of 76313 ***
Changed to 'CLOSED' state since 'RESOLVED' has been deprecated.