Bug #77097 [Csd]: DateTime::diff gives wrong diff when the actual diff is less than 1 second

From: Date: Wed, 05 Dec 2018 11:57:07 +0000
Subject: Bug #77097 [Csd]: 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-218277@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
 Updated by:         derick@php.net
 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:

Yes. It should get fixed in 7.2.14 and 7.3.0.


Previous Comments:
------------------------------------------------------------------------
[2018-12-05 09:31:38] daszwarc at olx dot pl

PHP 7.2.12 is also affected

------------------------------------------------------------------------
[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

------------------------------------------------------------------------


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


Thread (8 messages)

« previous php.bugs (#218277) next »