xp-framework/xp-framework — pull request #156 by ghiata (2012-04-27 17:08:10+00:00)
Title: Creation of Date from a float value causes PHP fatal error

Hello,

Creating Date from float values causes a fatal error. Eg:
~~~~php
$date= new Date('19.19');
~~~~
Expected result would be a Date object with today's date, hour 19, minute 19.
For more details about the supported DateTime formats see http://www.php.net/manual/en/datetime.formats.php .

Kind regards,
Stefan.