[BUGFIX] Correctly parse timestamps in format.date VH 08/34108/3
authorMarkus Klein <klein.t3@reelworx.at>
Thu, 13 Nov 2014 19:18:17 +0000 (20:18 +0100)
committerWouter Wolters <typo3@wouterwolters.nl>
Tue, 18 Nov 2014 22:16:33 +0000 (23:16 +0100)
commit6344833fce72d9133c3aa69ccd82e4d92cc761bb
tree276119e4d236ef5e97f3f702ed21be0123e453f0
parent466263d1e5bc237f99f9c212ede8c4da8b2581df
[BUGFIX] Correctly parse timestamps in format.date VH

If the timestamp is retrieved from child nodes, the date format
ViewHelper has to ensure the timestamp is properly recognized.
As child nodes are always returning a string, the former check with
is_integer() would never return TRUE.
Therefore adapt this check to use the MathUtility method as this
guarantees a proper check.

Resolves: #62932
Releases: master, 6.2
Change-Id: I6968991bf97f99f82fc942d7d17678c9b473e796
Reviewed-on: http://review.typo3.org/34108
Reviewed-by: Stefan Froemken <froemken@gmail.com>
Tested-by: Stefan Froemken <froemken@gmail.com>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
typo3/sysext/fluid/Classes/ViewHelpers/Format/DateViewHelper.php
typo3/sysext/fluid/Tests/Unit/ViewHelpers/Format/DateViewHelperTest.php