|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2017-04-19 17:49 UTC] cmb@php.net
-Status: Open
+Status: Feedback
-Assigned To:
+Assigned To: cmb
[2017-04-19 17:49 UTC] cmb@php.net
[2017-04-19 18:14 UTC] getriebesand at freenet dot de
-Status: Feedback
+Status: Assigned
[2017-04-19 18:14 UTC] getriebesand at freenet dot de
[2017-04-19 21:22 UTC] cmb@php.net
-Status: Assigned
+Status: Not a bug
[2017-04-19 21:22 UTC] cmb@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Nov 16 18:00:01 2025 UTC |
Description: ------------ The first transition seems to be wrong. The first 2 Transitions of Europe/Berlin are: [0] => Array ( [ts] => -9223372036854775808 [time] => -292277022657-01-27T08:29:52+0000 [offset] => 7200 [isdst] => 1 [abbr] => CEST ) [1] => Array ( [ts] => -1693706400 [time] => 1916-04-30T22:00:00+0000 [offset] => 7200 [isdst] => 1 [abbr] => CEST ) both have isdst = 1 and same offset. This means that before 1916 was always DST? Test script: --------------- array_slice( (new \DateTimeZone('Europe/Berlin'))->getTransitions(), 0, 2 ); Expected result: ---------------- [0] => Array ( [ts] => -9223372036854775808 [time] => -292277022657-01-27T08:29:52+0000 [offset] => 3600 [isdst] => [abbr] => CST ) [1] => Array ( [ts] => -1693706400 [time] => 1916-04-30T22:00:00+0000 [offset] => 7200 [isdst] => 1 [abbr] => CEST ) Actual result: -------------- [0] => Array ( [ts] => -9223372036854775808 [time] => -292277022657-01-27T08:29:52+0000 [offset] => 7200 [isdst] => 1 [abbr] => CEST ) [1] => Array ( [ts] => -1693706400 [time] => 1916-04-30T22:00:00+0000 [offset] => 7200 [isdst] => 1 [abbr] => CEST )