Discovering the XOs local timezone in a bash script

Mikus Grinbergs mikus at
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
 --get /timezone

but then you have to decode that string ( e.g., America/Chicago ).


More information about the Devel mailing list