The timeAgo does not work correctly when in GMT time zone because of how the daysAgo method in TimeUtils works.
This PR fixes that by changing to checking for actual full calendar days. To cover this with unit tests (as date issues are rather tricky), the methods in TimeUtils need to be overridden to make them testable in a reproducible way. And not have the test result dependent on the time of day the test is executed.
This fixes issued #800 and #1248.
The
timeAgo
does not work correctly when in GMT time zone because of how thedaysAgo
method inTimeUtils
works. This PR fixes that by changing to checking for actual full calendar days. To cover this with unit tests (as date issues are rather tricky), the methods inTimeUtils
need to be overridden to make them testable in a reproducible way. And not have the test result dependent on the time of day the test is executed. This fixes issued #800 and #1248.