Edit report at https://bugs.php.net/bug.php?id=74524&edit=1
ID: 74524
Comment by: miloslav dot hula at gmail dot com
Reported by: kalita dot michal at gmail dot com
Summary: Date diff is bad calculated, in same time zone
Status: Open
Type: Bug
Package: Date/time related
Operating System: Linux
PHP Version: 7.1.4
Block user comment: N
Private report: N
New Comment:
Hi,
probably another example of bug: https://3v4l.org/S7rGP
In the Europe/Prague timezone, there was a 1 hour switch back on 29th Oct 2017 from 03:00 to 02:00
(from CEST to CET).
When run on 3v4l.org with EOL versions checked, you can notice that behaviour has been correct in
5.3.0-5.4.23, 5.5.0-5.5.7. In the PHP5 5.4.24 and 5.5.8 change log is fixed bug #66060
(https://bugs.php.net/bug.php?id=66060).
Previous Comments:
------------------------------------------------------------------------
[2017-10-30 11:26:08] onda204 at gmail dot com
Hi,
I detected the following issue that may have to do with present Bug.
Using diff with dates that are on range of summer / winter time change, the function diff on element
$interval->h gives result -1
Tested width date interval:
27-10-2017
15.00 H
29-10-2017
14.00 H
Portuguese regional settings
------------------------------------------------------------------------
[2017-05-06 19:02:46] heiglandreas@php.net
This is a DST issue as can be seen in https://3v4l.org/9AWOI
The default Timezone of 3v4l.org is Europe/Amsterdam which has DST and therefore has the issue!
------------------------------------------------------------------------
[2017-05-03 07:18:55] andrew dot nester dot dev at gmail dot com
Just added reworked pull request to this issue. Here is the link https://github.com/php/php-src/pull/2506
------------------------------------------------------------------------
[2017-05-02 20:06:40] andrew dot nester dot dev at gmail dot com
Thanks Derick!
gonna rework my pull request
------------------------------------------------------------------------
[2017-05-02 12:33:58] derick@php.net
Andrew, it might look fixed for you because you have a different timezone with different DST rules
configured.
------------------------------------------------------------------------
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=74524
--
Edit this bug report at https://bugs.php.net/bug.php?id=74524&edit=1