ID: 22782
Comment by: patrick at sorrynospam dot org
Reported By: ameoba32 at riscom dot net
Status: Open
Bug Type: Date/time related
Operating System: W2K
PHP Version: 4.3.1
New Comment:
that seems to be correct though.
remember that:
333: 01:00:00 27-02-2003
334: 01:00:00 28-02-2003 !!!!
335: 01:00:00 01-03-2003
see:
for($i=1; $i < 400; $i++){
echo date("$i: H:i:s d-m-Y", mktime(1,0,0,4,$i,2002))."<BR>\n";
}
Previous Comments:
------------------------------------------------------------------------
[2003-03-19 02:57:20] ameoba32 at riscom dot net
echo date("H:i:s d-m-Y", mktime(0,0,0,4,364,2002))."\n";
echo date("H:i:s d-m-Y", mktime(1,0,0,4,364,2002))."\n";
prints this result:
01:00:00 30-03-2003
01:00:00 30-03-2003
364 is magic day number :) all other days works perfect.
thank you.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=22782&edit=1