mirror of
https://github.com/openwrt/luci
synced 2025-01-09 04:28:37 +08:00
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>
This commit is contained in:
parent
1970c21e3b
commit
f8eee09f55
@ -46,6 +46,34 @@ while( ! eof ZTAB ) {
|
||||
|
||||
close ZTAB;
|
||||
|
||||
# Add Etc/GMT zones from manually as they are not in zone.tab
|
||||
$TZ{"Etc/GMT"} = "GMT0";
|
||||
$TZ{"Etc/GMT-1"} = "<+01>-1";
|
||||
$TZ{"Etc/GMT-2"} = "<+02>-2";
|
||||
$TZ{"Etc/GMT-3"} = "<+03>-3";
|
||||
$TZ{"Etc/GMT-4"} = "<+04>-4";
|
||||
$TZ{"Etc/GMT-5"} = "<+05>-5";
|
||||
$TZ{"Etc/GMT-6"} = "<+06>-6";
|
||||
$TZ{"Etc/GMT-7"} = "<+07>-7";
|
||||
$TZ{"Etc/GMT-8"} = "<+08>-8";
|
||||
$TZ{"Etc/GMT-9"} = "<+09>-9";
|
||||
$TZ{"Etc/GMT-10"} = "<+10>-10";
|
||||
$TZ{"Etc/GMT-11"} = "<+11>-11";
|
||||
$TZ{"Etc/GMT-12"} = "<+12>-12";
|
||||
$TZ{"Etc/GMT-13"} = "<+13>-13";
|
||||
$TZ{"Etc/GMT-14"} = "<+14>-14";
|
||||
$TZ{"Etc/GMT+1"} = "<-01>1";
|
||||
$TZ{"Etc/GMT+2"} = "<-02>2";
|
||||
$TZ{"Etc/GMT+3"} = "<-03>3";
|
||||
$TZ{"Etc/GMT+4"} = "<-04>4";
|
||||
$TZ{"Etc/GMT+5"} = "<-05>5";
|
||||
$TZ{"Etc/GMT+6"} = "<-06>6";
|
||||
$TZ{"Etc/GMT+7"} = "<-07>7";
|
||||
$TZ{"Etc/GMT+8"} = "<-08>8";
|
||||
$TZ{"Etc/GMT+9"} = "<-09>9";
|
||||
$TZ{"Etc/GMT+10"} = "<-10>10";
|
||||
$TZ{"Etc/GMT+11"} = "<-11>11";
|
||||
$TZ{"Etc/GMT+12"} = "<-12>12";
|
||||
|
||||
open(O, "> $tzdout/tzdata.lua") || die "open($tzdout/tzdata.lua): $!\n";
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user