mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-12-25 10:05:49 +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");
|
||||
|
||||
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);
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user