[Sugar-devel] [PATCH] revise timezone list, #2195
Sascha Silbe
sascha-ml-reply-to-2011-2 at silbe.org
Tue Mar 22 18:47:53 EDT 2011
Excerpts from James Cameron's message of Mon Mar 21 04:09:27 +0100 2011:
> - remove GMT offsets as useless, since GMT tracks UTC and this is not
> expected to change,
>
> - fix #2195 by translating from ISO 8601 to POSIX.1 format, by
> reversing the sign,
>
> - increase UTC timezone coverage for Kiribati and Tonga.
Thanks for the patch! It's a good start, but unfortunately not enough.
POSIX defines TZ as "std offset dst offset, rule" [1], with std and dst
being the name of the _local_ time zone (for standard resp. daylight
savings time). Even after your patch Sugar always claims the local time
zone to be UTC which is clearly incorrect (for non-zero offsets).
In the long term I'd like to get rid of this Sugar-specific control
panel and recycle something from Gnome.
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).
Sascha
[1] http://pubs.opengroup.org/onlinepubs/009695399/basedefs/xbd_chap08.html#tag_08_03
--
http://sascha.silbe.org/
http://www.infra-silbe.de/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 500 bytes
Desc: not available
URL: <http://lists.sugarlabs.org/archive/sugar-devel/attachments/20110322/9c89515f/attachment.pgp>
More information about the Sugar-devel
mailing list