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

Reply via email to