Set a timezone

This commit is contained in:
Tim Schumacher 2016-06-27 21:46:26 +02:00
parent b6204c608d
commit c61b666a65

View file

@ -37,6 +37,9 @@ class EventControllerTest extends WebTestCase
$now = new \DateTime();
$now->setTime(0,0,0);
$tz = new \DateTimeZone("Europe/Berlin");
$now->setTimezone($tz);
$dateformat = "Y-m-d H:i";
$startdate = clone $now;
$startdate->add(new \DateInterval("P1D"));
@ -133,7 +136,7 @@ END:VEVENT
END:VCALENDAR
EOF;
$this->assertEquals($test_doc, $client->getResponse()->getContent());
}
}