telize

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

commit 8f6c0fe31d9524d5f800dab6880060d0c34c3467
parent de383c75c5ea6c8bb7f5f928a445917ce84e06fc
Author: Frederic Cambus <fred@statdns.com>
Date:   Sun,  4 Mar 2018 13:18:31 +0100

Rename offset to timezone_offset for better consistency

Diffstat:
Mtelize.conf | 6+++---
1 file 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, + timezone_offset = ngx.var.geoip2_timezone_offset, asn = ngx.var.geoip2_asn, organization = ngx.var.geoip2_organization, } @@ -134,8 +134,8 @@ server { end -- Convert timezone offset to numeric value - if payload.offset ~= nil then - payload.offset = tonumber(payload.offset) + if payload.timezone_offset ~= nil then + payload.timezone_offset = tonumber(payload.timezone_offset) end -- Convert ASN to numeric value