preferences.py
changeset 130 4212fd69d671
parent 129 67a30d680f60
child 131 67f5d2fdca1d
--- a/preferences.py	Sun Feb 15 23:50:24 2009 +0200
+++ b/preferences.py	Sun Feb 15 23:55:48 2009 +0200
@@ -369,10 +369,10 @@
 
     def is_default (self, tz) :
         """
-            True if it's a FixedOffsetTimezone
+            True if it's a FixedOffsetTimezone or PREF_TIMEZONE_DEFAULT
         """
 
-        return (isinstance(tz, utils.FixedOffsetTimezone))
+        return (isinstance(tz, utils.FixedOffsetTimezone) or tz == config.PREF_TIMEZONE_DEFAULT)
 
     def build (self, tz) :
         """
@@ -407,8 +407,6 @@
         
         # default
         else :
-            print
-            print "Timezone.process: %r, %r -> default: %r" % (prefs, tz, config.PREF_TIMEZONE_DEFAULT)
             return config.PREF_TIMEZONE_DEFAULT
 
 class ImageFont (Preference) :