|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2002-11-11 09:51 UTC] sniper@php.net
[2002-11-11 09:53 UTC] derick@php.net
[2002-11-11 09:54 UTC] derick@php.net
[2002-11-12 04:58 UTC] agnermadsen at hotmail dot com
[2002-11-12 06:19 UTC] sniper@php.net
[2002-11-12 07:35 UTC] agnermadsen at hotmail dot com
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 06:00:02 2025 UTC |
Wrong weeknumber is reportet for year=2001, month=12, day 31. The date function reports that is week number 53, but it is really week number 1. I fear that there are more bugs related to this problem. **** script start **** $date1=mktime(0,0,0,1,1,2002); $dag=date("w",$date1); if ($dag<=4) { echo $date1." is week 1"; $date2=mktime(0,0,0,1,1-$dag+1,2002); echo "<br>"; echo date ("Ymd-W", $date2); echo "<br>"; echo date ("Ymd-W", $date1); echo "<br>"; } **** script end **** **** output start **** 1009839600 is week 1 20011231-53 20020101-1 **** output end ****