9 Commits

Author SHA1 Message Date
Paul Donald
f36f014229 build: stop zoneinfo builder scripts changing '_' -> ' '
Zone names are correct when they contain an underscore, especially when
the zone names are used as input to functions and libraries.

See https://en.wikipedia.org/wiki/List_of_tz_database_time_zones

e.g.

Africa/Addis_Ababa
Africa/Dar_es_Salaam
Pacific/Port_Moresby

This can be revised in future if some GUI aesthetic is required.

Signed-off-by: Paul Donald <newtwen+github@gmail.com>
2025-10-20 14:38:28 +02:00
Paul Donald
66e758dcad build: comments for Darwin when building zoneinfo.
Signed-off-by: Paul Donald <newtwen@gmail.com>
2024-03-02 18:01:04 +01:00
Hannu Nyman
f8eee09f55 build/zoneinfo2lua.pl: logic for Etc/GMT timezones
Add logic to add Etc/GMT timezones (like GMT+5)
although the zones are not included in zone.tab

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2017-05-08 19:29:43 +03:00
Hannu Nyman
cdb9de9a9d zoneinfo2lua.pl to generate shorter copyright messages
Change zoneinfo2lua.pl to generate the short copyright messages
that have been there since 7a3493b1f7

Also change the advice on line 3 about directory, where this script
should be run.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2015-02-04 19:16:46 +02:00
Jo-Philipp Wich
eb25d532a8 build: adapt zoneinfo2lua.pl to new structure
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2015-01-08 16:51:47 +01:00
Jo-Philipp Wich
9fd0276848 build: zoneinfo2lua.pl: rework script to accommodate split tzdata.lua and tzoffset.lua libs 2011-01-02 17:52:06 +00:00
Jo-Philipp Wich
c8bac06623 build: make zoneinfo2lua.pl script more convenient 2011-01-02 17:29:19 +00:00
Jo-Philipp Wich
cbdc5af52e build: generate timezone offsets too in zoneinfo2lua.pl
libs/http:	drop zoneinfo information in luci.http.protocol.data, use luci.sys.zoneinfo instead
libs/sys:	refresh zoneinfo information
2008-12-06 03:18:14 +00:00
Jo-Philipp Wich
0d00e3b691 * luci/build: add zoneinfo2lua.pl utility 2008-11-06 17:48:47 +00:00