Weโve elaborated on the PHP TimeZone functionalities today to write another web application where โwhenโ meets โwhereโ via TimeZones.
Into the mix of the logic here, we need to venture into the world of two letter ISO Country Codes, and we work this with help from http://php.net/manual/en/datetimezone.getlocation.php and http://stackoverflow.com/questions/17842003/php-intl-country-code-2-chars-to-country-name and http://php.net/manual/en/function.timezone-identifiers-list.php and http://www.timezoneconverter.com/ to โhardcodeโ our HTML select โdropdownโ elements we create in the process, and offer TimeZone information HTML select โdropdownโ elements as well.
Also in the mix, as is so often the case for us here, when โwhereโ is part of the โequationโ, we use that wonderful Google Charts Map Chart functionality, to help us out.
And so we have written our liverun of the PHP code tz_places
php for your perusal.
If this was interesting you may be interested in this too.