#7637 BLOC 8.2.0 (: Date & Time panel not actually changing timezone
Zarro Boogs per Child
bugtracker at laptop.org
Wed Aug 13 03:15:52 EDT 2008
#7637: Date & Time panel not actually changing timezone
-----------------------+----------------------------------------------------
Reporter: Charlie | Owner: erikos
Type: defect | Status: new
Priority: blocker | Milestone: 8.2.0 (was Update.2)
Component: sugar | Version: not specified
Resolution: | Keywords: blocks:8.2.0 joyride-2200:- joyride-2263:-
Next_action: code | Verified: 0
Blockedby: | Blocking:
-----------------------+----------------------------------------------------
Comment(by erikos):
{{{
diff --git a/src/main.py b/src/main.py
index 38da54e..cd6f8cc 100644
--- a/src/main.py
+++ b/src/main.py
@@ -114,7 +114,7 @@ def main():
gtk.main()
# set timezone
- if os.environ.has_key('TZ'):
+ if get_profile().timezone is not None:
os.environ['TZ'] = get_profile().timezone
if os.environ.has_key("SUGAR_TP_DEBUG"):
}}}
I don't even think we need to check if the profile has the timezone member
since we set it to "UTC" by default before reading the config in. But we
need for sure remove the has_key('TZ') check.
--
Ticket URL: <http://dev.laptop.org/ticket/7637#comment:9>
One Laptop Per Child <http://laptop.org/>
OLPC bug tracking system
More information about the Bugs
mailing list