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:
parent
2e33256584
commit
a302b5509f
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user