krz/ifconfig.php

A private ifconfig service.

clone: git clone https://gitbay.org/krz/ifconfig.php.git

4bbf2f11003d9de237b3e4d091241e3988eb9447

unsigned

author: Christian Cleberg <hello@cleberg.net> · 2023-05-25T02:33:05Z

add time_zone
 ifconfig.php | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/ifconfig.php b/ifconfig.php
index fc4dd30..4010991 100644
--- a/ifconfig.php
+++ b/ifconfig.php
@@ -44,7 +44,8 @@ $user = array(
         'continent_name' => $geo['continent']['names']['en'],
         'country_code'   => $geo['country']['geoname_id'],
         'country_iso'    => $geo['country']['iso_code'],
-        'country_name'   => $geo['country']['names']['en']
+        'country_name'   => $geo['country']['names']['en'],
+        'time_zone'      => $geo['location']['time_zone']
 	);
 
 // Check request (ex. ifconfig.php?q=ip)