Discovering the XOs local timezone in a bash script

Richard A. Smith richard at laptop.org
Sun Mar 13 11:49:41 EDT 2011


On 03/13/2011 11:15 AM, Daniel Drake wrote:

> On 13 March 2011 03:21, Samuel Greenfeld<greenfeld at laptop.org>  wrote:
>> Sugar reports only relative times in its core GUI, so I don't know how
>> common it is for deployments or other users to actually change this
>> setting.  Setting a time zone other than UTC with 10.1.3 and prior may
>> also expose a flaw where the offset is repetitively applied every
>> reboot, shifting the clock.
>
> Just to remove any doubt..
> Setting the time zone from the control panel doesn't have any adverse
> effects such as the clock shift described above. This is is because
> sugar's time zone is isolated from the rest of the system as described
> here.

Thanks for clearing that up.  I've checked on build 860 and `date` 
reports the timezone selected via the control panel.  So that gives me 
what I need.

-- 
Richard A. Smith  <richard at laptop.org>
One Laptop per Child



More information about the Devel mailing list