[Sugar-devel] [PATCH] revise timezone list, #2195

Daniel Drake dsd at laptop.org
Tue Mar 22 19:31:52 EDT 2011


On 22 March 2011 22:47, Sascha Silbe
<sascha-ml-reply-to-2011-2 at silbe.org> wrote:
> Short term an option might be to parse the /usr/share/zoneinfo/zone.tab
> file. Probably too invasive for 0.92.x, though (but OLPC can cherry-pick
> from master).

I think you can still solve this quite clearly and easily. All of the
UTC+X UTC-X timezones could be translated into entries in
/usr/share/zoneinfo/Etc. For example, "UTC-5" would be converted to
TZ=:Etc/GMT+5

For all other entries shown in the list (which come from zone.tab),
simply prepend a : to closer match posix/libc definitions.
TZ=:America/Lima

Daniel


More information about the Sugar-devel mailing list