From: [EMAIL PROTECTED]
Operating system: FREE BSD 4.6
PHP version: 4.2.1
PHP Bug Type: Date/time related
Bug description: wrong date
// why is this returning 1969-12-31 ???
$day = 13;
$month = 10;
$year = 2002;
echo date("Y-m-d",mktime (0,0,0,$month,$day,$year));
And MySQL also does the same when I insert '2002-10-13' in a date field!!!
--
Edit bug report at http://bugs.php.net/?id=19620&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=19620&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=19620&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=19620&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=19620&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=19620&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=19620&r=support
Expected behavior: http://bugs.php.net/fix.php?id=19620&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=19620&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=19620&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=19620&r=globals