Skip to content

Commit a366b39

Browse files
committed
Timezone in XmlElementWrapperTest
1 parent 8f56575 commit a366b39

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/XmlElementWrapperTest.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ class XmlElementWrapperTest extends TestCase
99
{
1010
public function test()
1111
{
12+
$dt = new \DateTime('2020-02-02');
13+
$dt->setTimezone(new \DateTimeZone('Europe/Berlin'));
14+
1215
$html = Html::create();
1316
$head = $html->head()->title('The Title');
1417
$body = $html->body()->attrib('class', 'pg-static');
@@ -28,7 +31,7 @@ public function test()
2831
$body->getMarkup()
2932
);
3033

31-
$body->appendDateTime('p', new \Datetime('2020-02-02'));
34+
$body->appendDateTime('p', $dt);
3235

3336
$this->assertEquals(
3437
"<body class=\"pg-static\">\n"

0 commit comments

Comments
 (0)