April 18, 2016
3:47 p.m.
On Mon, Apr 18, 2016, at 11:34, Derick Rethans wrote:
PHP has an internal version of the library, and provides a file for listing all timezone identifiers: http://php.net/manual/en/datetimezone.listidentifiers.php
Yes, but it's the application's decision, not PHP's, to expose the output of that function to the public, rather than the output of the getLocation function you mentioned below..
Why does your program expose the timezone names instead of the descriptions from zone.tab - in this case, the current description of America/Toronto is "Eastern - ON, QC (most areas)"?
And PHP exposes that through:
derick@whisky:/tmp $ php -n -r '$tz = new DateTimeZone( "America/Toronto" ); var_dump( $tz->getLocation() );'