date.timezone=US/Eastern
--FILE--
<?php
-
$stamp = 1112427000;
print strftime('%c %Z',strtotime('now',$stamp)) ."\n";
print strftime('%c %Z',strtotime('tomorrow',$stamp)) ."\n";
--FILE--
<?php
$date = new DateTime("2011-05-17T22:14:12");
-$date2 = DateTime::createFromFormat("D H i s", $date->format("D"). ' 0 0 0');
+$date2 = DateTime::createFromFormat("D H i s", $date->format("D"). ' 0 00 00');
echo $date->format("r"), "\n";
echo $date2->format("r"), "\n";
var_dump($date->format("D") == $date2->format("D"));
// Verify that our implementation is the same as for the constructor and
// strtotime
$date1 = new DateTime("Tuesday");
-$date2 = DateTime::createFromFormat("D H i s", "Tuesday 0 0 0");
+$date2 = DateTime::createFromFormat("D H i s", "Tuesday 0 00 00");
echo $date1->format('r'), "\n";
echo $date2->format('r'), "\n";
var_dump($date1->format('D') == $date2->format('D'));