Bug #77097 [Com]: DateTime::diff gives wrong diff when the actual diff is less than 1 second
| From: | daszwarc at olx dot pl | Date: | Wed, 05 Dec 2018 09:31:38 +0000 |
| Subject: | Bug #77097 [Com]: DateTime::diff gives wrong diff when the actual diff is less than 1 second | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-218274@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=77097&edit=1
ID: 77097
Comment by: daszwarc at olx dot pl
Reported by: vishnunn at ymail dot com
Summary: DateTime::diff gives wrong diff when the actual diff
is less than 1 second
Status: Closed
Type: Bug
Package: Date/time related
Operating System: CentOS Linux 7.5.1804
PHP Version: 7.3.0RC4
Assigned To: derick
Block user comment: N
Private report: N
New Comment:
PHP 7.2.12 is also affected
Previous Comments:
------------------------------------------------------------------------
[2018-12-04 10:01:50] cmb@php.net
Related To: Bug #77237
------------------------------------------------------------------------
[2018-12-03 14:01:15] cmb@php.net
Automatic comment on behalf of github@derickrethans.nl
Revision: http://git.php.net/?p=php-src.git;a=commit;h=ea302f8b085466da1f417070f966ccce1e5ea9d2
Log: Fixed bug #77097 (DateTime::diff gives wrong diff when the actual diff is less than 1 second)
------------------------------------------------------------------------
[2018-11-28 20:35:46] derick@php.net
Automatic comment on behalf of github@derickrethans.nl
Revision: http://git.php.net/?p=php-src.git;a=commit;h=a3f2871b8ee6975e70685bca803d5499e540b803
Log: Fixed bug #77097 (DateTime::diff gives wrong diff when the actual diff is less than 1 second)
by upgrading to timelib 2017.09
------------------------------------------------------------------------
[2018-11-22 14:42:31] wyatt at wyday dot com
I've also reported this bug on the timelib repository with more details: https://github.com/derickr/timelib/issues/51
------------------------------------------------------------------------
[2018-11-22 14:31:22] wyatt at wyday dot com
We can confirm this bug exists on PHP 7.3.0 RC5 (for our development machines) and PHP 7.2.12 for
our production machines. This is a showstopper for us. We've had to rollback to 7.2.11 on our
production machines and we'll be unable to upgrade to any new version until this bug is fixed.
It looks like it's related to the latest timelib upgrade. It looks like you should revert that
change in the next version until all the edge cases are solved.
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
https://bugs.php.net/bug.php?id=77097
--
Edit this bug report at https://bugs.php.net/bug.php?id=77097&edit=1