[BUGFIX] BackendUtility::dateTimeAge must return correct values 65/47365/2
authorGeorg Ringer <georg.ringer@gmail.com>
Wed, 23 Mar 2016 05:08:56 +0000 (06:08 +0100)
committerMorton Jonuschat <m.jonuschat@mojocode.de>
Wed, 23 Mar 2016 08:20:38 +0000 (09:20 +0100)
commit97be0d00a4f4e5f2a9b2b4eb6f070cf7dfcbc1c0
treefc5b487b47d87b131303b6e5dc79717acac6f160
parent82cd7468b06454187a8abb9e8a0efad7047d2847
[BUGFIX] BackendUtility::dateTimeAge must return correct values

If the 3rd parameter is set to 'date', the age must be returned as
date without any time information.

Resolves: #75235
Releases: master, 7.6
Change-Id: I7ebf76dc635f7dbca42c6486c585eb140832e6c4
Reviewed-on: https://review.typo3.org/47364
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: Daniel Goerz <ervaude@gmail.com>
Tested-by: Daniel Goerz <ervaude@gmail.com>
Reviewed-by: Morton Jonuschat <m.jonuschat@mojocode.de>
Tested-by: Morton Jonuschat <m.jonuschat@mojocode.de>
(cherry picked from commit 5c46ba68ad79034a5daf678b4a41a5882dcbaf60)
Reviewed-on: https://review.typo3.org/47365
typo3/sysext/backend/Classes/Utility/BackendUtility.php
typo3/sysext/backend/Tests/Unit/Utility/BackendUtilityTest.php