#21984 [Com]: in 4.3.0 strtotime says next monday is Feb 10th 2003, thats wrong (4.2.3 works)

2003-02-03 Thread m . ford
 ID:   21984
 Comment by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
 Status:   Verified
 Bug Type: Date/time related
 Operating System: SuSE Linux 8.1
 PHP Version:  4.3.0
 New Comment:

Well, yeah, you'd think wouldn't you? -- but the sequence is explicitly
"first, next, third, ...".

Perhaps you want to turn this into a Feature Request?

Mike


Previous Comments:


[2003-02-03 08:17:06] [EMAIL PROTECTED]

Then, how about "second monday"?



[2003-02-03 08:00:15] [EMAIL PROTECTED]

It *is* correct now, because that's how it always should have worked. 
I agree that it's less intuitive, but that doesn't make it any less
correct.  (Blame the people who defined the GNU date format!)

"Monday", or "first Monday", or "1 Monday" will give you the first
Monday which is zero or more days after the specified date (or today).

"next Monday" or "2 Monday" will give you the Monday after that.

"third Monday" or "3 Monday" will give you the one after that.

And so on (except that the text versions run out at "twelfth", so from
there onward you can only use "13 Monday", "14 Monday", etc.).

Cheers!

Mike



[2003-02-03 05:44:09] [EMAIL PROTECTED]

Well, but it isn't correct now, but was before... or is there a new
term with with a can determine the "coming Monday" with strtotime?



[2003-02-03 05:36:56] [EMAIL PROTECTED]

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



[2003-01-31 11:34:23] [EMAIL PROTECTED]

Just some into: I have "downgraded" the server to 4.2.3 - now it works
fine...



The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/21984

-- 
Edit this bug report at http://bugs.php.net/?id=21984&edit=1




#21984 [Com]: in 4.3.0 strtotime says next monday is Feb 10th 2003, thats wrong (4.2.3 works)

2003-02-03 Thread m . ford
 ID:   21984
 Comment by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
 Status:   Verified
 Bug Type: Date/time related
 Operating System: SuSE Linux 8.1
 PHP Version:  4.3.0
 New Comment:

It *is* correct now, because that's how it always should have worked. 
I agree that it's less intuitive, but that doesn't make it any less
correct.  (Blame the people who defined the GNU date format!)

"Monday", or "first Monday", or "1 Monday" will give you the first
Monday which is zero or more days after the specified date (or today).

"next Monday" or "2 Monday" will give you the Monday after that.

"third Monday" or "3 Monday" will give you the one after that.

And so on (except that the text versions run out at "twelfth", so from
there onward you can only use "13 Monday", "14 Monday", etc.).

Cheers!

Mike


Previous Comments:


[2003-02-03 05:44:09] [EMAIL PROTECTED]

Well, but it isn't correct now, but was before... or is there a new
term with with a can determine the "coming Monday" with strtotime?



[2003-02-03 05:36:56] [EMAIL PROTECTED]

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



[2003-01-31 11:34:23] [EMAIL PROTECTED]

Just some into: I have "downgraded" the server to 4.2.3 - now it works
fine...



[2003-01-31 11:22:59] [EMAIL PROTECTED]

Can I do something against that or do I have to wait for 4.3.1?

Regards,
Rolf



[2003-01-31 10:58:20] [EMAIL PROTECTED]

Confirmed with HEAD on Linux.



The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/21984

-- 
Edit this bug report at http://bugs.php.net/?id=21984&edit=1




#21984 [Com]: in 4.3.0 strtotime says next monday is Feb 10th 2003, thats wrong (4.2.3 works)

2003-02-03 Thread m . ford
 ID:   21984
 Comment by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
 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] [EMAIL PROTECTED]

Just some into: I have "downgraded" the server to 4.2.3 - now it works
fine...



[2003-01-31 11:22:59] [EMAIL PROTECTED]

Can I do something against that or do I have to wait for 4.3.1?

Regards,
Rolf



[2003-01-31 10:58:20] [EMAIL PROTECTED]

Confirmed with HEAD on Linux.



[2003-01-31 08:39:52] [EMAIL PROTECTED]

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