From: [EMAIL PROTECTED] Operating system: MacOS X 10.2 PHP version: 4.3.0 PHP Bug Type: Date/time related Bug description: mktime returns -3662
Hello the function mktime seems to return an incorrect value for certain dates. Example: $the_day=mktime(0,0,0,03,30,03); returns the value -3662 I have also tried different variations: $the_day=mktime(0,0,0,3,30,03); $the_day=mktime(0,0,0,03,30,2003); But all yield the same result. If I use: $the_day=mktime(0,0,0,03,29,03); I get a UNIX timestamp back as expected. When using the mktime() function I normally also specify the daylight savings time value of 0, but this also makes no difference, whether it is 0 or 1. I am using PHP as built by www.entropy.ch -- Edit bug report at http://bugs.php.net/?id=22163&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=22163&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=22163&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=22163&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=22163&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=22163&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=22163&r=support Expected behavior: http://bugs.php.net/fix.php?id=22163&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=22163&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=22163&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=22163&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=22163&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=22163&r=dst IIS Stability: http://bugs.php.net/fix.php?id=22163&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=22163&r=gnused