#49115 [NEW]: date('M', strtotime('February')) prints "March"
| From: | php at davidstockton dot com | Date: | Thu, 30 Jul 2009 23:16:45 +0000 |
| Subject: | #49115 [NEW]: date('M', strtotime('February')) prints "March" | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-140505@lists.php.net to get a copy of this message | ||
From: php at davidstockton dot com
Operating system: Windows XP/Linux
PHP version: 5.2.10
PHP Bug Type: Date/time related
Bug description: date('M', strtotime('February')) prints "March"
Description:
------------
If I use strtotime on 'February' the resulting timestamp is in March.
Reproduce code:
---------------
echo date('F', strtotime('February'));
Expected result:
----------------
February
Actual result:
--------------
March
--
Edit bug report at http://bugs.php.net/?id=49115&edit=1
--
Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=49115&r=trysnapshot52
Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=49115&r=trysnapshot53
Try a snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=49115&r=trysnapshot60
Fixed in SVN: http://bugs.php.net/fix.php?id=49115&r=fixed
Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=49115&r=needdocs
Fixed in release: http://bugs.php.net/fix.php?id=49115&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=49115&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=49115&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=49115&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=49115&r=support
Expected behavior: http://bugs.php.net/fix.php?id=49115&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=49115&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=49115&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=49115&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=49115&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=49115&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=49115&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=49115&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=49115&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=49115&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=49115&r=mysqlcfg