Don't randomly add 1 second to parsed dates

This commit is contained in:
Luck 2019-12-24 17:49:27 +00:00
parent 6237d58ad6
commit cc5d7ea873
No known key found for this signature in database
GPG Key ID: EFA9B3EC5FD90F8B

View File

@ -127,9 +127,9 @@ public final class DateParser {
max.add(Calendar.YEAR, 10);
if (c.after(max)) {
return (max.getTimeInMillis() / 1000) + 1;
c = max;
}
return (c.getTimeInMillis() / 1000) + 1;
return c.getTimeInMillis() / 1000;
}
}