mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-09-06 22:45:33 +02:00
Better time format for action logging
This commit is contained in:
parent
8b54c6e5c4
commit
40be935abd
@ -5,6 +5,7 @@ import android.bluetooth.BluetoothGattCharacteristic;
|
|||||||
|
|
||||||
import java.text.DateFormat;
|
import java.text.DateFormat;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
|
import java.util.Locale;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The Bluedroid implementation only allows performing one GATT request at a time.
|
* The Bluedroid implementation only allows performing one GATT request at a time.
|
||||||
@ -50,7 +51,7 @@ public abstract class BtLEAction {
|
|||||||
}
|
}
|
||||||
|
|
||||||
protected String getCreationTime() {
|
protected String getCreationTime() {
|
||||||
return DateFormat.getTimeInstance(DateFormat.MEDIUM).format(new Date(creationTimestamp));
|
return DateFormat.getTimeInstance().format(new Date(creationTimestamp));
|
||||||
}
|
}
|
||||||
|
|
||||||
public String toString() {
|
public String toString() {
|
||||||
|
Loading…
Reference in New Issue
Block a user