Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   Crash Utility (http://www.linux-archive.org/crash-utility/)
-   -   Change displayed time with timezone change (http://www.linux-archive.org/crash-utility/664749-change-displayed-time-timezone-change.html)

Vratislav Podzimek 05-09-2012 02:35 PM

Change displayed time with timezone change
 
---
pyanaconda/ui/gui/spokes/datetime_spoke.py | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/pyanaconda/ui/gui/spokes/datetime_spoke.py b/pyanaconda/ui/gui/spokes/datetime_spoke.py
index 69fe85f..82515ea 100644
--- a/pyanaconda/ui/gui/spokes/datetime_spoke.py
+++ b/pyanaconda/ui/gui/spokes/datetime_spoke.py
@@ -30,7 +30,7 @@ from pyanaconda.ui.gui.spokes import NormalSpoke
from pyanaconda.ui.gui.categories.localization import LocalizationCategory

from pyanaconda import localization
-import datetime
+import datetime, os

__all__ = ["DatetimeSpoke"]

@@ -413,6 +413,8 @@ class DatetimeSpoke(NormalSpoke):

self._set_combo_selection(self._regionCombo, region)
self._set_combo_selection(self._cityCombo, city)
+ os.environ["TZ"] = timezone
+ self._update_datetime()

def on_timeformat_changed(self, button24h, *args):
hours_label = self.builder.get_object("hoursLabel")
--
1.7.4.4

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list


All times are GMT. The time now is 05:36 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.