1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-12-17 22:27:46 +01:00

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 :/
This commit is contained in:
Andreas Shimokawa 2021-07-30 16:33:44 +02:00
parent 2e33256584
commit a302b5509f

View File

@ -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));