From a302b5509faa875615a6ec1a43d0d3918b612bf0 Mon Sep 17 00:00:00 2001 From: Andreas Shimokawa Date: Fri, 30 Jul 2021 16:33:44 +0200 Subject: [PATCH] Huami: re-enable setting the timezone correctly with included DST This will trigger bugs, but also fix some. We "just" need to fix the new bugs :/ --- .../gadgetbridge/service/btle/BLETypeConversions.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/btle/BLETypeConversions.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/btle/BLETypeConversions.java index adb8e5691..4f88d50f1 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/btle/BLETypeConversions.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/btle/BLETypeConversions.java @@ -227,7 +227,7 @@ public class BLETypeConversions { */ public static byte mapTimeZone(TimeZone timeZone, int timezoneFlags) { int offsetMillis = timeZone.getRawOffset(); - if (false && timezoneFlags == TZ_FLAG_INCLUDE_DST_IN_TZ) { + if (timezoneFlags == TZ_FLAG_INCLUDE_DST_IN_TZ) { offsetMillis += timeZone.getDSTSavings(); } int utcOffsetInQuarterHours = (offsetMillis / (1000 * 60 * 15));