mirror of
https://github.com/f-droid/fdroidclient.git
synced 2026-06-18 04:39:45 -04:00
[app] Show more precise relative last updated dates
This commit is contained in:
committed by
Hans-Christoph Steiner
parent
f82f580aca
commit
6fadebe4e2
@@ -191,5 +191,13 @@ public class UtilsTest {
|
||||
"Updated 3 days ago",
|
||||
Utils.formatLastUpdated(res, now - 234834870L)
|
||||
);
|
||||
assertEquals(
|
||||
"Updated 13 days ago",
|
||||
Utils.formatLastUpdated(res, now - DateUtils.DAY_IN_MILLIS * 13 - offset)
|
||||
);
|
||||
assertEquals(
|
||||
"Updated 7 months ago",
|
||||
Utils.formatLastUpdated(res, now - DateUtils.DAY_IN_MILLIS * 30 * 7 + offset)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user