There was an error while loading. Please reload this page.
1 parent 5142dbb commit cfff58cCopy full SHA for cfff58c
2 files changed
.gitignore
@@ -13,4 +13,4 @@
13
*GENERATED*
14
Tests/Unit/Build/.phpunit.cache/
15
Tests/Functional/Build/.phpunit.cache/
16
-
+/packages
Classes/ViewHelpers/DateTime/FormatUtcDateViewHelper.php
@@ -28,10 +28,8 @@ public function render(): string
28
29
$date = $this->arguments['date'];
30
if ($date instanceof \DateTimeInterface) {
31
- $renderChildrenClosure = static function () use ($date) {
32
- // Convert date to timestamp, so that it can be reparsed.
33
- return $date->getTimestamp();
34
- };
+ // Convert date to timestamp, so that the parent reparses it in the UTC timezone.
+ $this->arguments['date'] = $date->getTimestamp();
35
}
36
37
$result = parent::render();
0 commit comments