[BUGFIX] Fluid viewhelper f:format.date() uses timestamp from context aspect 54/60454/9
authorBenni Mack <benni@typo3.org>
Tue, 9 Apr 2019 01:52:03 +0000 (03:52 +0200)
committerDaniel Goerz <daniel.goerz@posteo.de>
Sat, 27 Apr 2019 08:36:46 +0000 (10:36 +0200)
commit8c26d46ebe3324467c461ba76aaf02a3c5ee6617
tree30e8fec4afcf6d131594eabfbb588539069a1495
parenta065af8948437ac8bb3d2ab4ad892a09cf072c5e
[BUGFIX] Fluid viewhelper f:format.date() uses timestamp from context aspect

Use timestamp from context runtime instead of use time() in
viewhelper calls to prevent different dates in rendering process.

Resolves: #87935
Releases: master, 9.5
Change-Id: I8d4f2a231746a9a4cdc280c710ae07d9499e3d3e
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/60454
Tested-by: TYPO3com <noreply@typo3.com>
Tested-by: Jörg Bösche <typo3@joergboesche.de>
Tested-by: Daniel Goerz <daniel.goerz@posteo.de>
Reviewed-by: Tobi Kretschmann <tobi@tobishome.de>
Reviewed-by: Jörg Bösche <typo3@joergboesche.de>
Reviewed-by: Daniel Goerz <daniel.goerz@posteo.de>
typo3/sysext/fluid/Classes/ViewHelpers/Format/DateViewHelper.php
typo3/sysext/fluid/Tests/Unit/ViewHelpers/Format/DateViewHelperTest.php