|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2015-01-05 08:09 UTC] fjbaozi at gmail dot com
-Status: Open
+Status: Closed
[2015-01-05 08:09 UTC] fjbaozi at gmail dot com
|
|||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Nov 03 11:00:02 2025 UTC |
Description: ------------ Sometime,the date('W') result is incorrect. Test script: --------------- var_dump(date('Y-m-d H:i:s, W', mktime(0,0,0,12,31,2014))); var_dump(date('Y-m-d H:i:s, W', mktime(0,0,0,1,1,2015))); Expected result: ---------------- string '2014-12-31 00:00:00, 53' (length=23) string '2015-01-01 00:00:00, 53' (length=23) Actual result: -------------- string '2014-12-31 00:00:00, 01' (length=23) string '2015-01-01 00:00:00, 01' (length=23)