diff --git a/app/src/main/java/org/communiquons/android/comunic/client/data/utils/Utilities.java b/app/src/main/java/org/communiquons/android/comunic/client/data/utils/Utilities.java index 041768f..fbc7e44 100644 --- a/app/src/main/java/org/communiquons/android/comunic/client/data/utils/Utilities.java +++ b/app/src/main/java/org/communiquons/android/comunic/client/data/utils/Utilities.java @@ -285,7 +285,7 @@ public class Utilities { //A several amount of years else { - int years = (int) Math.floor(31536000); + int years = (int) Math.floor(time / 31536000); return years + res.getString(years > 1 ? R.string.date_years : R.string.date_year); } }