From c97136e4fe5cacd2cdb06469d1c66922ef6150bb Mon Sep 17 00:00:00 2001 From: protomors Date: Fri, 1 Sep 2017 20:32:25 +0300 Subject: [PATCH] Fixed wrong parameter. Time is set in 24-hour format. --- .../gadgetbridge/service/devices/no1f1/No1F1Support.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/no1f1/No1F1Support.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/no1f1/No1F1Support.java index af4f453fd..43e9b02ec 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/no1f1/No1F1Support.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/no1f1/No1F1Support.java @@ -282,7 +282,7 @@ public class No1F1Support extends AbstractBTLEDeviceSupport { (byte) (c.get(Calendar.YEAR) % 256), (byte) (c.get(Calendar.MONTH) + 1), (byte) c.get(Calendar.DAY_OF_MONTH), - (byte) c.get(Calendar.HOUR), + (byte) c.get(Calendar.HOUR_OF_DAY), (byte) c.get(Calendar.MINUTE), (byte) c.get(Calendar.SECOND) };