mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-12-25 10:05:49 +01:00
try to parse timezone that comes back from huami devices
(there are other places where something like this has to be done, probably also in the other direction) related to #869
This commit is contained in:
parent
24f98504b0
commit
a58e3f66ce
@ -147,6 +147,12 @@ public class BLETypeConversions {
|
||||
value[6] & 0xff
|
||||
);
|
||||
|
||||
if (value.length > 7) {
|
||||
TimeZone timeZone = TimeZone.getDefault();
|
||||
timeZone.setRawOffset(value[7] * 15 * 60 * 1000);
|
||||
timestamp.setTimeZone(timeZone);
|
||||
}
|
||||
|
||||
if (honorDeviceTimeOffset) {
|
||||
int offsetInHours = MiBandCoordinator.getDeviceTimeOffsetHours();
|
||||
if (offsetInHours != 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user