From 40be935abd572ef8d92bda91e836bfeb6c3a3a43 Mon Sep 17 00:00:00 2001 From: cpfeiffer Date: Fri, 10 Jul 2015 21:02:03 +0200 Subject: [PATCH] Better time format for action logging --- .../nodomain/freeyourgadget/gadgetbridge/btle/BtLEAction.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/btle/BtLEAction.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/btle/BtLEAction.java index 5b4d2cee..a33f92b0 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/btle/BtLEAction.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/btle/BtLEAction.java @@ -5,6 +5,7 @@ import android.bluetooth.BluetoothGattCharacteristic; import java.text.DateFormat; import java.util.Date; +import java.util.Locale; /** * The Bluedroid implementation only allows performing one GATT request at a time. @@ -50,7 +51,7 @@ public abstract class BtLEAction { } protected String getCreationTime() { - return DateFormat.getTimeInstance(DateFormat.MEDIUM).format(new Date(creationTimestamp)); + return DateFormat.getTimeInstance().format(new Date(creationTimestamp)); } public String toString() {