telize

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

commit 3db354d5c168a01517fb7dd218584695fe5b7b04
parent dbbc7419594185102216f2d28625189d0738afe1
Author: Frederic Cambus <fred@statdns.com>
Date:   Sat,  3 Mar 2018 21:00:28 +0100

Rename $geoip2_timezone_offset to $geoip2_offset

Diffstat:
Mtelize.conf | 2+-
Mtimezone-offset.conf | 2+-
Mtz-offset.lua | 2+-
3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/telize.conf b/telize.conf @@ -113,7 +113,7 @@ server { latitude = ngx.var.geoip2_latitude, longitude = ngx.var.geoip2_longitude, timezone = ngx.var.geoip2_timezone, - offset = ngx.var.geoip2_timezone_offset, + offset = ngx.var.geoip2_offset, asn = ngx.var.geoip2_asn, organization = ngx.var.geoip2_organization, } diff --git a/timezone-offset.conf b/timezone-offset.conf @@ -1,4 +1,4 @@ -map $geoip2_timezone $geoip2_timezone_offset { +map $geoip2_timezone $geoip2_offset { "Africa/Abidjan" 0; "Africa/Accra" 0; "Africa/Addis_Ababa" 10800; diff --git a/tz-offset.lua b/tz-offset.lua @@ -505,7 +505,7 @@ local timezones = { local utcnow = luatz.time () -print("map $geoip2_timezone $geoip2_timezone_offset {") +print("map $geoip2_timezone $geoip2_offset {") for loop, timezone in ipairs(timezones) do print('\t"' .. timezone .. '" ' ..