Fix bans not expiring (FS-147)

This commit is contained in:
Nathan Curran 2021-03-21 12:21:15 +11:00
parent f5c08cd28b
commit 561c192c27
No known key found for this signature in database
GPG Key ID: B3A964B30C2E56B8

View File

@ -169,7 +169,7 @@ public class Ban
public boolean isExpired()
{
return hasExpiry() && expiryUnix < FUtil.getUnixTime();
return hasExpiry() && FUtil.getUnixDate(expiryUnix).before(new Date(FUtil.getUnixTime()));
}
public String bakeKickMessage()