mirror of
https://github.com/php/php-src.git
synced 2024-12-04 23:34:25 +08:00
fdb2709dd2
Fixes bug #67308 (Serialize of DateTime truncates fractions of second).
17 lines
356 B
PHP
17 lines
356 B
PHP
--TEST--
|
|
Bug #53879 (DateTime::createFromFormat() fails to parse cookie expiration date)
|
|
--INI--
|
|
date.timezone=UTC
|
|
--FILE--
|
|
<?php
|
|
$date = DateTime::createFromFormat(DateTime::COOKIE, "Mon, 21-Jan-2041 15:24:52 GMT");
|
|
print_r($date);
|
|
?>
|
|
--EXPECTF--
|
|
DateTime Object
|
|
(
|
|
[date] => 2041-01-21 15:24:52.000000
|
|
[timezone_type] => 2
|
|
[timezone] => GMT
|
|
)
|