[BUGFIX] Correctly parse timestamps in format.date VH 23/34323/2
authorMarkus Klein <klein.t3@reelworx.at>
Thu, 13 Nov 2014 19:18:17 +0000 (20:18 +0100)
committerWouter Wolters <typo3@wouterwolters.nl>
Wed, 19 Nov 2014 18:25:42 +0000 (19:25 +0100)
commit1d3304e728bacfb0b2222c4c6be57bc51d6ee624
tree0c86ea06b3f54a883ea23be18ee80a93d1886d44
parent341d9cc65c79bb66f8374a36f45bb96b615a23ba
[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/34323
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