[Sugar-devel] [PATCH] Don't set default timezone

Daniel Drake dsd at laptop.org
Mon Feb 21 17:22:11 EST 2011


By default, Sugar's gconf schema configures a UTC timezone, and this
means that sugar-session unconditionally adjusts the environment so that
a UTC timezone is used.

This overrides any system-wide timezone specified by /etc/localtime.
Test case: set /etc/localtime to Asia/Taipei, start sugar, open terminal,
run "date", observe that it shows GMT time.

Drop the text value from the default gconf schema. This allows the
systemwide timezone to be used as a default. Sugar users can still make
their own choice (overriding the systemwide default) in the control panel.
---
 data/sugar.schemas.in |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/data/sugar.schemas.in b/data/sugar.schemas.in
index f38b42e..b13f746 100644
--- a/data/sugar.schemas.in
+++ b/data/sugar.schemas.in
@@ -78,7 +78,7 @@
       <applyto>/desktop/sugar/date/timezone</applyto>
       <owner>sugar</owner>
       <type>string</type>
-      <default>UTC</default>
+      <default></default>
       <locale name="C">
         <short>Timezone</short>
         <long>Timezone setting for the system.</long>
-- 
1.7.4



More information about the Sugar-devel mailing list