#34618 [NEW]: unexpected strtotime output

From: Date: Fri, 23 Sep 2005 15:30:01 +0000
Subject: #34618 [NEW]: unexpected strtotime output
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-85508@lists.php.net to get a copy of this message
From: technophreak at gammae dot com Operating system: fedora code 2 PHP version: 5.0.5 PHP Bug Type: Date/time related Bug description: unexpected strtotime output Description: ------------ Some dates does not output properly with strtotime() Works fine on PHP 4.3 Reproduce code: --------------- $date = "2005-10-30 01:00:00"; $format = "Y-m-d H:i:s"; print date($format,strtotime("1 hour",strtotime($date)))."\n"; print date($format,strtotime("2 hour",strtotime($date)))."\n"; Expected result: ---------------- 2005-10-30 02:00:00 2005-10-30 03:00:00 Actual result: -------------- 2005-10-30 01:00:00 2005-10-30 02:00:00 -- Edit bug report at http://bugs.php.net/?id=34618&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=34618&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=34618&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=34618&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=34618&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=34618&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=34618&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=34618&r=needscript Try newer version: http://bugs.php.net/fix.php?id=34618&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=34618&r=support Expected behavior: http://bugs.php.net/fix.php?id=34618&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=34618&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=34618&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=34618&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=34618&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=34618&r=dst IIS Stability: http://bugs.php.net/fix.php?id=34618&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=34618&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=34618&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=34618&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=34618&r=mysqlcfg

« previous php.bugs (#85508) next »