mirror of
https://github.com/LuckPerms/LuckPerms.git
synced 2025-03-02 11:31:13 +01:00
Don't randomly add 1 second to parsed dates
This commit is contained in:
parent
6237d58ad6
commit
cc5d7ea873
@ -127,9 +127,9 @@ public final class DateParser {
|
|||||||
max.add(Calendar.YEAR, 10);
|
max.add(Calendar.YEAR, 10);
|
||||||
|
|
||||||
if (c.after(max)) {
|
if (c.after(max)) {
|
||||||
return (max.getTimeInMillis() / 1000) + 1;
|
c = max;
|
||||||
}
|
}
|
||||||
return (c.getTimeInMillis() / 1000) + 1;
|
return c.getTimeInMillis() / 1000;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user