Bug #78478 [NEW]: DateTime is formatting wrongly

From: Date: Fri, 30 Aug 2019 15:06:51 +0000
Subject: Bug #78478 [NEW]: DateTime is formatting wrongly
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-222495@lists.php.net to get a copy of this message
From: jmriera at oqpbcn dot com Operating system: Centos PHP version: Irrelevant Package: Date/time related Bug Type: Bug Bug description:DateTime is formatting wrongly Description: ------------ The format method in the date time is formatting wrongly Test script: --------------- $do=DateTime::createFromFormat('F-y','February-18'); echo $do->format("Y-m-d H:i:s").'<br>'; The result is outside of the February month 2018-03-02 16:49:08 Expected result: ---------------- 2018-02-?? ... Actual result: -------------- The result is outside of the February month 2018-03-02 16:49:08 -- Edit bug report at https://bugs.php.net/bug.php?id=78478&edit=1 -- Fix committed: https://bugs.php.net/fix.php?id=78478&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=78478&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=78478&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=78478&r=needscript Try newer version: https://bugs.php.net/fix.php?id=78478&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=78478&r=support Expected behavior: https://bugs.php.net/fix.php?id=78478&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=78478&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=78478&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=78478&r=globals PHP version support discontinued: https://bugs.php.net/fix.php?id=78478&r=phptooold Daylight Savings: https://bugs.php.net/fix.php?id=78478&r=dst IIS Stability: https://bugs.php.net/fix.php?id=78478&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=78478&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=78478&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=78478&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=78478&r=mysqlcfg

« previous php.bugs (#222495) next »