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:
parent
1ccb7ab785
commit
8761bf96a4
@ -19,7 +19,6 @@ import java.io.IOException;
|
||||
import java.nio.BufferOverflowException;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Calendar;
|
||||
import java.util.Date;
|
||||
import java.util.GregorianCalendar;
|
||||
import java.util.HashMap;
|
||||
import java.util.Iterator;
|
||||
@ -370,7 +369,7 @@ public class FossilHRWatchAdapter extends FossilWatchAdapter {
|
||||
new TimeConfigItem(
|
||||
(int) (millis / 1000 + getDeviceSupport().getTimeOffset() * 60),
|
||||
(short) (millis % 1000),
|
||||
(short) ((zone.getRawOffset() + (zone.inDaylightTime(new Date()) ? 1 : 0)) / 60000)
|
||||
(short) (zone.getOffset(millis) / 60000)
|
||||
),
|
||||
this), false
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user