mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2025-01-25 16:15:55 +01:00
Support timezones with half an our offset (like UTC+5:30)
Should help #2283
This commit is contained in:
parent
6526268804
commit
f32c4d6a43
@ -230,8 +230,8 @@ public class BLETypeConversions {
|
|||||||
if (false && timezoneFlags == TZ_FLAG_INCLUDE_DST_IN_TZ) {
|
if (false && timezoneFlags == TZ_FLAG_INCLUDE_DST_IN_TZ) {
|
||||||
offsetMillis += timeZone.getDSTSavings();
|
offsetMillis += timeZone.getDSTSavings();
|
||||||
}
|
}
|
||||||
int utcOffsetInHours = (offsetMillis / (1000 * 60 * 60));
|
int utcOffsetInQuarterHours = (offsetMillis / (1000 * 60 * 15));
|
||||||
return (byte) (utcOffsetInHours * 4);
|
return (byte) utcOffsetInQuarterHours;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user