From 488ac397fa782e60bbb626588ceffd8e4d74244e Mon Sep 17 00:00:00 2001 From: Pierre Date: Mon, 22 Jan 2018 18:50:59 +0100 Subject: [PATCH] Fix issue --- .../android/comunic/client/data/utils/Utilities.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } }