Set a timezone
This commit is contained in:
parent
b6204c608d
commit
c61b666a65
1 changed files with 4 additions and 1 deletions
|
@ -37,6 +37,9 @@ class EventControllerTest extends WebTestCase
|
||||||
$now = new \DateTime();
|
$now = new \DateTime();
|
||||||
$now->setTime(0,0,0);
|
$now->setTime(0,0,0);
|
||||||
|
|
||||||
|
$tz = new \DateTimeZone("Europe/Berlin");
|
||||||
|
$now->setTimezone($tz);
|
||||||
|
|
||||||
$dateformat = "Y-m-d H:i";
|
$dateformat = "Y-m-d H:i";
|
||||||
$startdate = clone $now;
|
$startdate = clone $now;
|
||||||
$startdate->add(new \DateInterval("P1D"));
|
$startdate->add(new \DateInterval("P1D"));
|
||||||
|
|
Reference in a new issue