From 9cc46c1557970bf968fb72479b06079d731b2c3c Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Thu, 30 Aug 2018 15:43:05 +0200 Subject: [PATCH] Fix date formatting exception --- .../android/comunic/client/data/utils/StringsUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/org/communiquons/android/comunic/client/data/utils/StringsUtils.java b/app/src/main/java/org/communiquons/android/comunic/client/data/utils/StringsUtils.java index ac27812..6f66091 100644 --- a/app/src/main/java/org/communiquons/android/comunic/client/data/utils/StringsUtils.java +++ b/app/src/main/java/org/communiquons/android/comunic/client/data/utils/StringsUtils.java @@ -56,7 +56,7 @@ public class StringsUtils { * @return Generated string */ public static String FormatDate(int time){ - SimpleDateFormat simpleDateFormat = new SimpleDateFormat("YYYY-MM-dd", + SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd", Locale.getDefault()); return simpleDateFormat.format((long)1000*time); }