We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8f56575 commit a366b39Copy full SHA for a366b39
tests/XmlElementWrapperTest.php
@@ -9,6 +9,9 @@ class XmlElementWrapperTest extends TestCase
9
{
10
public function test()
11
12
+ $dt = new \DateTime('2020-02-02');
13
+ $dt->setTimezone(new \DateTimeZone('Europe/Berlin'));
14
+
15
$html = Html::create();
16
$head = $html->head()->title('The Title');
17
$body = $html->body()->attrib('class', 'pg-static');
@@ -28,7 +31,7 @@ public function test()
28
31
$body->getMarkup()
29
32
);
30
33
- $body->appendDateTime('p', new \Datetime('2020-02-02'));
34
+ $body->appendDateTime('p', $dt);
35
36
$this->assertEquals(
37
"<body class=\"pg-static\">\n"
0 commit comments