|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2018-11-13 09:05 UTC] frank dot hartmann at netfira dot com
-Status: Open
+Status: Closed
[2018-11-13 09:05 UTC] frank dot hartmann at netfira dot com
[2018-11-13 09:56 UTC] cmb@php.net
-Status: Closed
+Status: Not a bug
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Dec 19 03:00:02 2025 UTC |
Description: ------------ The 31st of December 2018 is converted to the first week of 2018 instead of the first week of 2019 when using a combination of strototime and date. Test script: --------------- echo date("W-Y", strtotime("2018-12-31T00:00:00Z"))."\n"; //outputs 01-2018 instead of 01-2019 echo date("d-m-Y", strtotime("2018-12-31T00:00:00Z")); // correct calculation Expected result: ---------------- I expect to see 01-2019 as the output of the first line