Discovering the XOs local timezone in a bash script
    Mikus Grinbergs 
    mikus at bga.com
       
    Sat Mar 12 23:13:00 EST 2011
    
    
  
Well, 'My Settings' -> 'Date & Time' allows the user to specify the
local timezone (I always do this) - but I'm not sure which routines
actually make use of that setting.
It can be extracted by (all on one line):  gconftool-2 --direct
 --config-source=xml:readwrite:/home/olpc/.gconf/desktop/sugar/date
 --get /timezone
but then you have to decode that string ( e.g., America/Chicago ).
mikus
    
    
More information about the Devel
mailing list