I have a country code and I need to get its timezone.
Most of the time, the country code comes from GeoIP and I can just use $reader->country($ip)->location->timeZone.
However sometimes the country code comes from the URL, using GeoIP1 I could get the timezone using get_time_zone() from timezone.php.
I've looked carefully through the docs and it seems like the only entry point is the IP now, having a country code does not allow me to lookup what I need to.
Hello,
I have a country code and I need to get its timezone.
Most of the time, the country code comes from GeoIP and I can just use
$reader->country($ip)->location->timeZone
.However sometimes the country code comes from the URL, using GeoIP1 I could get the timezone using
get_time_zone()
from timezone.php.I've looked carefully through the docs and it seems like the only entry point is the IP now, having a country code does not allow me to lookup what I need to.
Did I miss something ?