|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2018-12-03 11:48 UTC] uli dot staerk at dc1 dot com
-Status: Open
+Status: Closed
[2018-12-03 11:48 UTC] uli dot staerk at dc1 dot com
[2018-12-03 14:02 UTC] cmb@php.net
-Status: Closed
+Status: Not a bug
[2018-12-03 14:21 UTC] danack@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 01 13:00:01 2025 UTC |
Description: ------------ The output for date("Y/W") is not correct for 2018-12-31! Test script: --------------- php > echo date("Y/W", strtotime('2018-12-30')); 2018/52 php > echo date("Y/W", strtotime('2018-12-31')); 2018/01 php > echo date("Y/W", strtotime('2019-01-01')); 2019/01 Expected result: ---------------- php > echo date("Y/W", strtotime('2018-12-31')); 2019/01 Actual result: -------------- php > echo date("Y/W", strtotime('2018-12-31')); 2018/01