#21984 [Com]: in 4.3.0 strtotime says next monday is Feb 10th 2003, thats wrong (4.2.3 works)
| From: | m dot ford at lmu dot ac dot uk | Date: | Mon, 03 Feb 2003 11:36:57 +0000 |
| Subject: | #21984 [Com]: in 4.3.0 strtotime says next monday is Feb 10th 2003, thats wrong (4.2.3 works) | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-31946@lists.php.net to get a copy of this message | ||
ID: 21984
Comment by: m.ford@lmu.ac.uk
Reported By: krueger@bundes-verlag.de
Status: Verified
Bug Type: Date/time related
Operating System: SuSE Linux 8.1
PHP Version: 4.3.0
New Comment:
H'rumph! Actually, both of your servers are producing the answer they
should!
In PHP versions prior to 4.3.0, the handling of "next" in strtotime()
was incorrect; it was fixed for 4.3.0, so your script will require a
minor update. Please see bug http://bugs.php.net/bug.php?id=18655 for
the relevent discussion.
This bug should be set to Bogus -- I don't think I have karma yet, so
would somebody do it, please?
Cheers!
Mike
Previous Comments:
------------------------------------------------------------------------
[2003-01-31 11:34:23] krueger@bundes-verlag.de
Just some into: I have "downgraded" the server to 4.2.3 - now it works
fine...
------------------------------------------------------------------------
[2003-01-31 11:22:59] krueger@bundes-verlag.de
Can I do something against that or do I have to wait for 4.3.1?
Regards,
Rolf
------------------------------------------------------------------------
[2003-01-31 10:58:20] pollita@php.net
Confirmed with HEAD on Linux.
------------------------------------------------------------------------
[2003-01-31 08:39:52] krueger@bundes-verlag.de
Today is Friday, 31st Jan.
On our server with the new PHP 4.3.0, strtotime says "next monday" is
"Feb 10th 2003". That is wrong!
On our older servers, which have still PHP 4.2.3, the very same script
says "Feb 3rd 2003", which is correct.
In 4.3.0 you fixed a bug with "calculation of number of week" - maybe
that's the problem.
Server clocks are syncronized between the servers, so that's not the
point :-)
Thanks and bye,
Rolf
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=21984&edit=1