#26935 [NEW]: strtotime("next wednesday") yields wrong result

From: Date: Fri, 16 Jan 2004 14:07:29 +0000
Subject: #26935 [NEW]: strtotime("next wednesday") yields wrong result
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-53429@lists.php.net to get a copy of this message
From: matthias dot schuetze at bifab dot de Operating system: Linux 2.4.24 PHP version: 4.3.4 PHP Bug Type: Date/time related Bug description: strtotime("next wednesday") yields wrong result Description: ------------ Hi, we switched from PHP 4.2.3 to PHP 4.3.4. The code date("Y-m-d",strtotime("next wednesday")) that yields the correct date as with 4.2.3 now gives the date one week further. Example: today is 2004-01-16; next Wednesday is 2004-01-21, however the above given code results in 2004-01-28. Good luck. -- Edit bug report at http://bugs.php.net/?id=26935&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=26935&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=26935&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=26935&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=26935&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=26935&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=26935&r=needscript Try newer version: http://bugs.php.net/fix.php?id=26935&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=26935&r=support Expected behavior: http://bugs.php.net/fix.php?id=26935&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=26935&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=26935&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=26935&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=26935&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=26935&r=dst IIS Stability: http://bugs.php.net/fix.php?id=26935&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=26935&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=26935&r=float

« previous php.bugs (#53429) next »