1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-12-25 18:15:49 +01:00

try to fix duplicate/missing surise/sunset pins

This commit is contained in:
Andreas Shimokawa 2016-05-31 00:07:24 +02:00
parent b71597800a
commit 0231e83ea3

View File

@ -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);
/*