Fixed too long ago

Fixes #37
This commit is contained in:
M66B 2018-08-23 19:53:04 +00:00
parent 63f52efd09
commit 4d17841c38
1 changed files with 3 additions and 0 deletions

View File

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