telize

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

commit 5c42c9bfba62e09f1d919f811893514e2e755a16
parent d330dabadab6a77bae8c6588ad86d28155332e74
Author: Frederic Cambus <fred@statdns.com>
Date:   Sat,  3 Mar 2018 18:54:48 +0100

Convert timezone offset to numeric value

Diffstat:
Mtelize.conf | 5+++++
1 file changed, 5 insertions(+), 0 deletions(-)

diff --git a/telize.conf b/telize.conf @@ -133,6 +133,11 @@ server { payload.longitude = tonumber(payload.longitude) end + -- Convert timezone offset to numeric value + if payload.offset ~= nil then + payload.offset = tonumber(payload.offset) + end + -- Convert ASN to numeric value if payload.asn ~= nil then payload.asn = tonumber(payload.asn)