telize

High performance JSON IP and GeoIP REST API (IP Geolocation)
Log | Files | Refs | README | LICENSE

commit afb75713e67c088b8910f42d8f3be754a705b92f
parent 16dfc4402e123ff473e1c2048c048b013bcdd6c5
Author: Frederic Cambus <fred@statdns.com>
Date:   Sat,  3 Mar 2018 18:08:03 +0100

Generate timezone offsets as numeric values

Diffstat:
Mtz-offset.lua | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tz-offset.lua b/tz-offset.lua @@ -361,8 +361,8 @@ local utcnow = luatz.time () print("map $geoip_timezone $geoip_timezone_offset {") for loop, timezone in ipairs(timezones) do - print('\t"' .. timezone .. '" "' .. - luatz.get_tz(timezone):find_current(utcnow).gmtoff/3600 .. '";') + print('\t"' .. timezone .. '" ' .. + luatz.get_tz(timezone):find_current(utcnow).gmtoff/3600 .. ';') end print("}")