Edit report at https://bugs.php.net/bug.php?id=61215&edit=1
ID: 61215 Updated by: sala...@php.net Reported by: luca450mhz at inwind dot it Summary: DateTime function error -Status: Open +Status: Not a bug Type: Bug -Package: *Data Exchange functions +Package: Date/time related Operating System: Windows 7 64bit PHP Version: Irrelevant Block user comment: N Private report: N New Comment: Your date format d/m/Y is not supported, the value "29/02/2012" was taken to have m/d/Y format and with that format it is invalid. Examples that would have worked include 29-02-2012, 29.02.2012, 2012/02/29 and 02/29/2012. Available date formats are listed at http://php.net/manual/en/datetime.formats.date.php Previous Comments: ------------------------------------------------------------------------ [2012-03-01 08:47:54] luca450mhz at inwind dot it 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 this bug report at https://bugs.php.net/bug.php?id=61215&edit=1