[PATCH 1/5] Change displayed time with timezone change

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



---
 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@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list


[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux