Jump to content

DateTimeZone::listIdentifiers() different results


jordanwb

Recommended Posts

On this page: http://ca2.php.net/manual/en/datetimezone.listidentifiers.php there is the following code snippit:

 

<?php
$timezone_identifiers = DateTimeZone::listIdentifiers();
for ($i=0; $i < 5; $i++) {
    echo "$timezone_identifiers[$i]\n";
}
?>

 

With the following output:

 

Africa/Abidjan
Africa/Accra
Africa/Addis_Ababa
Africa/Algiers
Africa/Asmera

 

But when I run it I get different results:

 

localtime
Zulu
WET
W-SU
Universal

 

Why do I get different results?

 

I'm running Php 5.2.10 on Ubuntu 9.10

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.