summaryrefslogtreecommitdiffhomepage
path: root/build
diff options
context:
space:
mode:
authorHannu Nyman <hannu.nyman@iki.fi>2017-05-08 19:29:43 +0300
committerHannu Nyman <hannu.nyman@iki.fi>2017-05-18 12:09:28 +0300
commit1ccb88d136faea453f900b9b51949556e41d69e3 (patch)
treecf043bd026b3a68801dc50589f538a0d3cd5a71b /build
parent6467df385fed94fc529dca8ebd4f4eb192ff7c39 (diff)
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> (cherry picked from commit f8eee09f55faa375b11cf00b2f96915c92f924f4)
Diffstat (limited to 'build')
-rwxr-xr-xbuild/zoneinfo2lua.pl28
1 files changed, 28 insertions, 0 deletions
diff --git a/build/zoneinfo2lua.pl b/build/zoneinfo2lua.pl
index d3f040326..1a0bee1c6 100755
--- a/build/zoneinfo2lua.pl
+++ b/build/zoneinfo2lua.pl
@@ -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";