note 44419 added to function.strtotime

From: Date: Thu, 05 Aug 2004 10:53:45 +0000
Subject: note 44419 added to function.strtotime
Groups: php.notes 
Request: Send a blank email to php-notes+get-73999@lists.php.net to get a copy of this message
Another note concerning the 'next' syntax. In 4.2.2 the following code did the expected <? $myDate = strtotime('next month', $myDate); ?> Since 4.3.3 the result is the month after the next month. For example when myDate was February, the 'next month' would be April instead of March as you would expect. A workaround that works in 4.2. ans 4.3. is this: <? $myDate = strtotime('+1 month', $myDate); ?> ---- Manual Page -- http://www.php.net/manual/en/function.strtotime.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+44419 Delete -- http://master.php.net/manage/user-notes.php?action=delete+44419&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+44419&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#73999) next »