Browse Source

Fixed too long ago

Fixes #37
main
M66B 6 years ago
parent
commit
4d17841c38
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      app/src/main/java/eu/faircode/email/ServiceSynchronize.java

+ 3
- 0
app/src/main/java/eu/faircode/email/ServiceSynchronize.java View File

@ -1129,6 +1129,9 @@ public class ServiceSynchronize extends LifecycleService {
cal.set(Calendar.MILLISECOND, 0); cal.set(Calendar.MILLISECOND, 0);
long ago = cal.getTimeInMillis(); long ago = cal.getTimeInMillis();
if (ago < 0)
ago = 0;
Log.i(Helper.TAG, folder.name + " ago=" + new Date(ago)); Log.i(Helper.TAG, folder.name + " ago=" + new Date(ago));
// Delete old local messages // Delete old local messages


Loading…
Cancel
Save