Discovering the XOs local timezone in a bash script

Daniel Drake dsd at laptop.org
Sun Mar 13 11:56:36 EDT 2011


On 13 March 2011 15:49, Richard A. Smith <richard at laptop.org> wrote:
> 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.

That only applies when you're in the sugar environment though.
If you're dealing with data generated by powerd, or from a cron script
or something like that, you'll get UTC regardless of what was selected
inside sugar.

Daniel


More information about the Devel mailing list