Bug #78988 [Com]: Issue with DST -> Standard transition for positive offsets

From: Date: Wed, 18 Dec 2019 21:39:00 +0000
Subject: Bug #78988 [Com]: Issue with DST -> Standard transition for positive offsets
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-224397@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=78988&edit=1

 ID:                 78988
 Comment by:         n at tebru dot net
 Reported by:        n at tebru dot net
 Summary:            Issue with DST -> Standard transition for positive
                     offsets
 Status:             Open
 Type:               Bug
 Package:            *General Issues
 Operating System:   linux
 PHP Version:        Irrelevant
 Block user comment: N
 Private report:     N

 New Comment:

To add on to this, I found a similar problem. I have a timestamp starting at the second time through
an hour during a fallback. When I construct the date from the timestamp and output it, it's
correct. When I set the timezone, it moves back to the first time through the hour.

https://3v4l.org/aR7r3


Previous Comments:
------------------------------------------------------------------------
[2019-12-18 04:46:31] n at tebru dot net

Description:
------------
The script below lists all of the timezones affected with the following conditions:

1. Timezone using DST
2. Date constructed 1 second before transition to standard time
3. Date is not in DST

For example, if a timezone moves back to 2AM at 3AM, a date constructed at 2:59:59AM DST. Adding a
second should move it back to 2AM standard time. What I'm seeing is all of the timezones with
positive offsets are getting constructed in standard time and most (except for one) of the timezones
with negative offsets are getting constructed in DST.

Test script:
---------------
https://3v4l.org/vslF6

Expected result:
----------------
All dates behave the same way with respect to DST.



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



--
Edit this bug report at https://bugs.php.net/bug.php?id=78988&edit=1


Thread (3 messages)

« previous php.bugs (#224397) next »