Fix bug when scheudling backups.

This commit is contained in:
Cody Henthorne
2022-10-13 15:42:29 -04:00
committed by Greyson Parrelli
parent a0172ddb2f
commit 033004719a

View File

@@ -52,7 +52,7 @@ public class LocalBackupListener extends PersistentAlarmManagerListener {
} else {
LocalDateTime now = LocalDateTime.now();
LocalDateTime next = now.withHour(2).withMinute(0).withSecond(0);
if (now.getHour() > 2) {
if (now.getHour() >= 2) {
next = next.plusDays(1);
}