[BUGFIX] BackendUtility::calcAge returns negative value for 0 80/19680/2
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:36:27 +0000 (16:36 +0200)
commit8efa2f6b7286347fb559c0f2390b78cedaf4088e
treea227ebb0002f5d4d50c4d6697a6d073b9e6db389
parent47dcd13d69a7a60f938c9f7bbd2a6519aa07150e
[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/19680
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
typo3/sysext/backend/Classes/Utility/BackendUtility.php
typo3/sysext/backend/Tests/Unit/Utility/BackendUtilityTest.php