telize

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

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

Generate timezone offsets in seconds

Diffstat:
Mtz-offset.lua | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tz-offset.lua b/tz-offset.lua @@ -362,7 +362,7 @@ 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 .. ';') + luatz.get_tz(timezone):find_current(utcnow).gmtoff .. ';') end print("}")