#26935 [Csd->Bgs]: strtotime("next wednesday") yields wrong result
| From: | eru@php.net | Date: | Fri, 16 Jan 2004 15:01:38 +0000 |
| Subject: | #26935 [Csd->Bgs]: strtotime("next wednesday") yields wrong result | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-53437@lists.php.net to get a copy of this message | ||
ID: 26935
Updated by: eru@php.net
Reported By: matthias dot schuetze at bifab dot de
-Status: Closed
+Status: Bogus
Bug Type: Date/time related
Operating System: Linux 2.4.24
PHP Version: 4.3.4
New Comment:
re-bogusification
Previous Comments:
------------------------------------------------------------------------
[2004-01-16 09:41:10] matthias dot schuetze at bifab dot de
Well, you're right: the new behaviour is like the doc says.
Since it is different from before and since I didn't find the change
comment in the manual I missed that goal.
Thank you and have a nice day.
------------------------------------------------------------------------
[2004-01-16 09:14:34] sniper@php.net
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to
report
a bug at http://bugs.php.net/how-to-report.php
In 4.3.0:
"- Brought strtotime() "next" keyword handling in line with
documentation and its glibc cousin. (Rasmus)"
------------------------------------------------------------------------
[2004-01-16 09:07:28] matthias dot schuetze at bifab dot de
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 this bug report at http://bugs.php.net/?id=26935&edit=1