diff options
author | Remi Collet <remi@php.net> | 2012-12-01 10:20:39 +0100 |
---|---|---|
committer | Remi Collet <remi@php.net> | 2012-12-01 10:20:39 +0100 |
commit | c2554b4bb43700ae16db34d9706db1db85ec78a4 (patch) | |
tree | 3a1ddaed4dda8eb654f72bf7f9bd0320f7b389e6 /ext/date/tests/bug45554.phpt | |
parent | ff6c9e2726ab724707999ed651d1a414336665f2 (diff) | |
download | php-git-c2554b4bb43700ae16db34d9706db1db85ec78a4.tar.gz |
Fixed Bug #63435 Datetime::format('u') sometimes wrong by 1 microsecond
When storing '015700' microseconds in a Datetime object,
Datetime::format('u') returns '015699'
Already known per bug45554 reproducer (also fixed).
Diffstat (limited to 'ext/date/tests/bug45554.phpt')
-rw-r--r-- | ext/date/tests/bug45554.phpt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/date/tests/bug45554.phpt b/ext/date/tests/bug45554.phpt index 0e9ebfd140..a5042ffb1c 100644 --- a/ext/date/tests/bug45554.phpt +++ b/ext/date/tests/bug45554.phpt @@ -9,12 +9,12 @@ $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), " (precision isn't enough to show the 1 here)\n"; +echo $d->format($format), "\n"; $d = date_create_from_format($format, "03-15-2005 12:22:29.0010 PST"); echo $d->format($format), "\n"; ?> --EXPECT-- 03-15-2005 12:22:29.000000 PST -03-15-2005 12:22:29.001000 PST (precision isn't enough to show the 1 here) +03-15-2005 12:22:29.001001 PST 03-15-2005 12:22:29.001000 PST |