From 040651637237ba6059ad4ce6b9683382b89c333c Mon Sep 17 00:00:00 2001 From: Tzachi Dar Date: Mon, 14 Nov 2016 00:57:18 +0200 Subject: [PATCH] Fix use of android.text.format.DateFormat.format 'kk' represents the hours and not 'HH'. This is needed for android 4.2 Signed-off-by: Tzachi Dar --- app/src/main/java/com/eveningoutpost/dexdrip/Models/JoH.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/com/eveningoutpost/dexdrip/Models/JoH.java b/app/src/main/java/com/eveningoutpost/dexdrip/Models/JoH.java index 17259c0ecd..ef8bcc789f 100644 --- a/app/src/main/java/com/eveningoutpost/dexdrip/Models/JoH.java +++ b/app/src/main/java/com/eveningoutpost/dexdrip/Models/JoH.java @@ -444,11 +444,11 @@ public static String hourMinuteString() { } public static String hourMinuteString(long timestamp) { - return android.text.format.DateFormat.format("HH:mm", timestamp).toString(); + return android.text.format.DateFormat.format("kk:mm", timestamp).toString(); } public static String dateTimeText(long timestamp) { - return android.text.format.DateFormat.format("yyyy-MM-dd HH:mm:ss", timestamp).toString(); + return android.text.format.DateFormat.format("yyyy-MM-dd kk:mm:ss", timestamp).toString(); } public static String dateText(long timestamp) {