svn: /phpdoc/en/trunk/reference/datetime/functions/ strtotime.xml

From: Date: Tue, 15 Sep 2009 06:28:00 +0000
Subject: svn: /phpdoc/en/trunk/reference/datetime/functions/ strtotime.xml
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-4925@lists.php.net to get a copy of this message
torben Tue, 15 Sep 2009 06:28:00 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=288346 Log: Documented the old incorrect behaviour that requesting a given occurrence of a weekday in a month when that weekend occurred on the first day of the month would add one week to the returned timestamp. Addresses bug #46932 Not sure this should be a warning. Seems more appropriate in the changelog section. I'm just putting it here now to be consistent with the existing function reference. Bug: http://bugs.php.net/46932 (Open) strtotime() has inconsistency between 'next Monday' and '+1 Monday' Changed paths: U phpdoc/en/trunk/reference/datetime/functions/strtotime.xml Modified: phpdoc/en/trunk/reference/datetime/functions/strtotime.xml =================================================================== --- phpdoc/en/trunk/reference/datetime/functions/strtotime.xml 2009-09-15 00:09:13 UTC (rev 288345) +++ phpdoc/en/trunk/reference/datetime/functions/strtotime.xml 2009-09-15 06:28:00 UTC (rev 288346) @@ -150,8 +150,15 @@ &reftitle.notes; <warning> <para> + In PHP 5 prior to 5.2.7, requesting a given occurrence of a given + weekday in a month where that weekday was the first day of the + month would incorrectly add one week to the returned timestamp. + </para> + </warning> + <warning> + <para> In PHP 5 up to 5.0.2, <literal>"now"</literal> and other relative times - are wrongly computed from today's midnight. It differs from other + are wrongly computed from today's midnight. This differs from other versions where it is correctly computed from current time. </para> </warning>

« previous php.doc.cvs (#4925) next »