mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2025-01-13 11:17:33 +01:00
try to fix duplicate/missing surise/sunset pins
This commit is contained in:
parent
b71597800a
commit
0231e83ea3
@ -43,6 +43,10 @@ public class AlarmReceiver extends BroadcastReceiver {
|
|||||||
LOG.info("will resend sunrise and sunset events");
|
LOG.info("will resend sunrise and sunset events");
|
||||||
|
|
||||||
final GregorianCalendar dateTimeTomorrow = new GregorianCalendar();
|
final GregorianCalendar dateTimeTomorrow = new GregorianCalendar();
|
||||||
|
dateTimeTomorrow.set(Calendar.HOUR, 0);
|
||||||
|
dateTimeTomorrow.set(Calendar.MINUTE, 0);
|
||||||
|
dateTimeTomorrow.set(Calendar.SECOND, 0);
|
||||||
|
dateTimeTomorrow.set(Calendar.MILLISECOND, 0);
|
||||||
dateTimeTomorrow.add(GregorianCalendar.DAY_OF_MONTH, 1);
|
dateTimeTomorrow.add(GregorianCalendar.DAY_OF_MONTH, 1);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user