[TASK] Support \DateTimeInterface in fluid Format\DateViewHelper 18/45218/2
authorMorton Jonuschat <m.jonuschat@mojocode.de>
Fri, 11 Dec 2015 21:38:02 +0000 (22:38 +0100)
committerMarkus Klein <markus.klein@typo3.org>
Sat, 12 Dec 2015 21:24:56 +0000 (22:24 +0100)
commit737125d67d642c5edb8e5683fff3e902760c3611
tree59ebdedc6e1b6c1c83eae1d509a61e5e363f7cd2
parent6efa9bd0b8ebcbfc420eb094e8702181ba68e0df
[TASK] Support \DateTimeInterface in fluid Format\DateViewHelper

This patch changes the fluid DateViewHelper to check for date objects
implementing \DateTimeInterface so that \DateTime as well as
\DateTimeImmutable can be supplied as parameter.

Resolves: #72149
Releases: master
Change-Id: I3c3e2648168b283f8ec1fc35845a449c63d0b6ff
Reviewed-on: https://review.typo3.org/45218
Reviewed-by: Georg Ringer <georg.ringer@gmail.com>
Tested-by: Georg Ringer <georg.ringer@gmail.com>
Reviewed-by: Daniel Goerz <ervaude@gmail.com>
Tested-by: Daniel Goerz <ervaude@gmail.com>
Reviewed-by: Markus Klein <markus.klein@typo3.org>
Tested-by: Markus Klein <markus.klein@typo3.org>
typo3/sysext/fluid/Classes/ViewHelpers/Format/DateViewHelper.php
typo3/sysext/fluid/Tests/Unit/ViewHelpers/Format/DateViewHelperTest.php