From 5fde8c367cae3ba7687fd3b4c8ac097aeca45074 Mon Sep 17 00:00:00 2001 From: Jacques Foucry Date: Fri, 12 Aug 2016 16:08:27 +0200 Subject: [PATCH] Correction format de la date --- app/src/main/java/net/foucry/pilldroid/UtilDate.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/net/foucry/pilldroid/UtilDate.java b/app/src/main/java/net/foucry/pilldroid/UtilDate.java index 058b3ca..c0648b7 100644 --- a/app/src/main/java/net/foucry/pilldroid/UtilDate.java +++ b/app/src/main/java/net/foucry/pilldroid/UtilDate.java @@ -107,7 +107,7 @@ public class UtilDate { } public static String convertDate(long dateInMilliseconds) { - DateFormat formatter = new SimpleDateFormat("YYYY/mm/dd hh:MM:ss"); + DateFormat formatter = new SimpleDateFormat("dd/MM/yyyy HH:mm:ss"); Calendar calendar = Calendar.getInstance(); calendar.setTimeInMillis(dateInMilliseconds); return formatter.format(calendar.getTime());