mirror of
https://github.com/php/php-src.git
synced 2024-10-03 07:46:12 +00:00
21 lines
522 B
Plaintext
21 lines
522 B
Plaintext
|
--TEST--
|
||
|
Bug #45554 (Inconsistent behavior of the u format char)
|
||
|
--INI--
|
||
|
date.timezone=UTC
|
||
|
--FILE--
|
||
|
<?php
|
||
|
$format = "m-d-Y H:i:s.u T";
|
||
|
$d = date_create_from_format($format, "03-15-2005 12:22:29.000000 PST");
|
||
|
echo $d->format($format), "\n";
|
||
|
|
||
|
$d = date_create_from_format($format, "03-15-2005 12:22:29.001001 PST");
|
||
|
echo $d->format($format), "\n";
|
||
|
|
||
|
$d = date_create_from_format($format, "03-15-2005 12:22:29.0010 PST");
|
||
|
var_dump( $d );
|
||
|
?>
|
||
|
--EXPECT--
|
||
|
03-15-2005 12:22:29.000000 PST
|
||
|
03-15-2005 12:22:29.001000 PST
|
||
|
bool(false)
|