Bug #74529 [Opn->Fbk]: DateTime::diff seems to ignore $absolute = true

From: Date: Sat, 06 May 2017 18:56:32 +0000
Subject: Bug #74529 [Opn->Fbk]: DateTime::diff seems to ignore $absolute = true
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-208977@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=74529&edit=1 ID: 74529 Updated by: heiglandreas@php.net Reported by: hrovira at seocom dot es Summary: DateTime::diff seems to ignore $absolute = true -Status: Open +Status: Feedback Type: Bug Package: Date/time related Operating System: Ubuntu 16.04.2 LTS PHP Version: 7.1.4 Block user comment: N Private report: N New Comment: To me this looks like a duplicate of https://bugs.php.net/bug.php?id=52480 depending on which way the diff starts… Previous Comments: ------------------------------------------------------------------------ [2017-05-03 12:17:05] andrew dot nester dot dev at gmail dot com I've just updated my PR to fix the issue. See https://github.com/php/php-src/pull/2509 Thanks! ------------------------------------------------------------------------ [2017-05-02 20:06:00] andrew dot nester dot dev at gmail dot com Thanks Derick! gonna rework my pull request ------------------------------------------------------------------------ [2017-05-02 12:34:14] derick@php.net Andrew, it might look fixed for you because you have a different timezone with different DST rules configured. ------------------------------------------------------------------------ [2017-05-02 12:12:51] andrew dot nester dot dev at gmail dot com thanks for reporting this issue! I tried to reproduce it on latest 7.1 build (7.1.6-dev) - working good. but anyway I decided to add test to prove that it works as expected (see my PR) ------------------------------------------------------------------------ [2017-05-02 11:04:36] hrovira at seocom dot es Obviously, expected and actual results are switched :( ------------------------------------------------------------------------ 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=74529 -- Edit this bug report at https://bugs.php.net/bug.php?id=74529&edit=1

« previous php.bugs (#208977) next »