From: Operating system: Windows 7 64bit PHP version: Irrelevant Package: *Data Exchange functions Bug Type: Bug Bug description:DateTime function error
Description: ------------ --- >From manual page: http://www.php.net/datetime.construct --- I have this error: Message: Error parsing date/time value: '29/02/2012' [wrapped: DateTime::__construct() [datetime.--construct]: Failed to parse time string (29/02/2012) at position 0 (2): Unexpected character] The year 2012 is a leap year, and the date 2012/02/29 it's correct! This error occurs in a writing operation on the database; I am using framework Propel for this. Expected result: ---------------- I expect no error with dates of a leap years -- Edit bug report at https://bugs.php.net/bug.php?id=61215&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=61215&r=trysnapshot54 Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=61215&r=trysnapshot53 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=61215&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=61215&r=fixed Fixed in SVN and need be documented: https://bugs.php.net/fix.php?id=61215&r=needdocs Fixed in release: https://bugs.php.net/fix.php?id=61215&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=61215&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=61215&r=needscript Try newer version: https://bugs.php.net/fix.php?id=61215&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=61215&r=support Expected behavior: https://bugs.php.net/fix.php?id=61215&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=61215&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=61215&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=61215&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=61215&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=61215&r=dst IIS Stability: https://bugs.php.net/fix.php?id=61215&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=61215&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=61215&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=61215&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=61215&r=mysqlcfg