mirror of
https://github.com/php/php-src.git
synced 2026-03-31 20:53:00 +02:00
It fixes several bugs: - Fixed bug #45554 (Inconsistent behavior of the u format char). - Fixed bug #48225 (DateTime parser doesn't set microseconds for "now"). - Fixed bug #52514 (microseconds are missing in DateTime class). - Fixed bug #52519 (microseconds in DateInterval are missing). - Fixed bug #68506 (General DateTime improvments needed for microseconds to become useful). - Fixed bug #73109 (timelib_meridian doesn't parse dots correctly). - Fixed bug #73247 (DateTime constructor does not initialise microseconds property). It also updates timelib to 2016.04, and updates a data mapping file, which causes changes to the volatile abbreviations tests.
59 lines
892 B
PHP
59 lines
892 B
PHP
--TEST--
|
|
timezone_abbreviations_list() tests
|
|
--FILE--
|
|
<?php
|
|
date_default_timezone_set('UTC');
|
|
$timezone_abbreviations = timezone_abbreviations_list();
|
|
var_dump($timezone_abbreviations["utc"]);
|
|
echo "Done\n";
|
|
?>
|
|
--EXPECTF--
|
|
array(5) {
|
|
[0]=>
|
|
array(3) {
|
|
["dst"]=>
|
|
bool(false)
|
|
["offset"]=>
|
|
int(0)
|
|
["timezone_id"]=>
|
|
string(13) "Etc/Universal"
|
|
}
|
|
[1]=>
|
|
array(3) {
|
|
["dst"]=>
|
|
bool(false)
|
|
["offset"]=>
|
|
int(0)
|
|
["timezone_id"]=>
|
|
string(7) "Etc/UTC"
|
|
}
|
|
[2]=>
|
|
array(3) {
|
|
["dst"]=>
|
|
bool(false)
|
|
["offset"]=>
|
|
int(0)
|
|
["timezone_id"]=>
|
|
string(8) "Etc/Zulu"
|
|
}
|
|
[3]=>
|
|
array(3) {
|
|
["dst"]=>
|
|
bool(false)
|
|
["offset"]=>
|
|
int(0)
|
|
["timezone_id"]=>
|
|
string(3) "UTC"
|
|
}
|
|
[4]=>
|
|
array(3) {
|
|
["dst"]=>
|
|
bool(false)
|
|
["offset"]=>
|
|
int(0)
|
|
["timezone_id"]=>
|
|
string(3) "UTC"
|
|
}
|
|
}
|
|
Done
|