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

Fossil Hybrid HR: Fix DST

Previously hour was mistakenly devided by 60000

Related: #1751
This commit is contained in:
Andreas Shimokawa 2020-03-13 08:49:00 +01:00
parent 1ccb7ab785
commit 8761bf96a4

View File

@ -19,7 +19,6 @@ import java.io.IOException;
import java.nio.BufferOverflowException; import java.nio.BufferOverflowException;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Calendar; import java.util.Calendar;
import java.util.Date;
import java.util.GregorianCalendar; import java.util.GregorianCalendar;
import java.util.HashMap; import java.util.HashMap;
import java.util.Iterator; import java.util.Iterator;
@ -370,7 +369,7 @@ public class FossilHRWatchAdapter extends FossilWatchAdapter {
new TimeConfigItem( new TimeConfigItem(
(int) (millis / 1000 + getDeviceSupport().getTimeOffset() * 60), (int) (millis / 1000 + getDeviceSupport().getTimeOffset() * 60),
(short) (millis % 1000), (short) (millis % 1000),
(short) ((zone.getRawOffset() + (zone.inDaylightTime(new Date()) ? 1 : 0)) / 60000) (short) (zone.getOffset(millis) / 60000)
), ),
this), false this), false
); );