Merge branch 'development' into tfm-bugfix-001

This commit is contained in:
Nathan Curran 2021-03-21 16:11:13 +11:00 committed by GitHub
commit db3c190b2b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

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()

View file

@ -612,7 +612,7 @@ public class FUtil
public static long getUnixTime()
{
return Instant.now().getEpochSecond();
return Instant.now().toEpochMilli();
}
public static long getUnixTime(Date date)