note 111679 rejected from datetime.createfromformat by aharvey

From: Date: Fri, 15 Mar 2013 16:35:16 +0000
Subject: note 111679 rejected from datetime.createfromformat by aharvey
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-194086@lists.php.net to get a copy of this message
Note Submitter: franco dot boscaro at oxamedia dot com ---- With the following code: <?php $timezone = new DateTimeZone('Europe/Rome'); $checkdate = DateTime::createFromFormat('Y-m-d', '0000-00-00', $timezone); var_dump($checkdate); ?> the result is: object(DateTime)#2 (3) { ["date"]=> string(20) "-0001-11-30 16:05:50" ["timezone_type"]=> int(3) ["timezone"]=> string(11) "Europe/Rome" } suggestions?

« previous php.notes (#194086) next »