#18670 [NEW]: strtotime() bug
| From: | nic at bbmcarlson dot com | Date: | Wed, 31 Jul 2002 14:26:00 +0000 |
| Subject: | #18670 [NEW]: strtotime() bug | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-15681@lists.php.net to get a copy of this message | ||
From: nic@bbmcarlson.com
Operating system: RedHat Linux Linux linux1 2.2.16
PHP version: 4.2.2
PHP Bug Type: Date/time related
Bug description: strtotime() bug
I have some code:
$nextmonth = strtotime("next month");
$monthafter = strtotime("next month",$nextmonth") ;
$monthOne = date("F") ;
$monthTwo=date("F",$nextmonth) ;
$monthThree=date("F",$monthafter) ;
Today is July 31 2002. I have the code:
print($monthOne) ;
print($monthTwo) ;
print($monthThree) ;
It prints: July, August, October
I expect it to print: July, August, September
--
Edit bug report at http://bugs.php.net/?id=18670&edit=1
--
Fixed in CVS: http://bugs.php.net/fix.php?id=18670&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=18670&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=18670&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=18670&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=18670&r=support
Expected behavior: http://bugs.php.net/fix.php?id=18670&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=18670&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=18670&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=18670&r=globals