[BUGFIX] BackendUtility::calcAge returns negative value for 0 70/19670/4
authorNicole Cordes <typo3@cordes.co>
Sat, 6 Apr 2013 13:05:21 +0000 (15:05 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Sat, 6 Apr 2013 14:35:06 +0000 (16:35 +0200)
commit6c1df8d89a01a2069717e22a5f34acab285be258
tree168d371909ba368f73b4c4213fffd17c6c8f74ff
parent0817b845e5dbba851f7f9168cdf2b5cf9b477e95
[BUGFIX] BackendUtility::calcAge returns negative value for 0

Currently the function calcAge returns the value -0 min for zero seconds.
This should be changed as zero is unsigned. Besides some UnitTests are
added to verify the functionality of that function.

Change-Id: Ie0c7572e63bf8d3a6f074f2ccf0db63ac6f5c801
Fixes: #46984
Releated: 6.1, 6.0
Reviewed-on: https://review.typo3.org/19670
Reviewed-by: Alexander Opitz
Tested-by: Alexander Opitz
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
typo3/sysext/backend/Classes/Utility/BackendUtility.php
typo3/sysext/backend/Tests/Unit/Utility/BackendUtilityTest.php