Merge pull request #38 from AtlasMediaGroup/FS-147

Fix ban expiration (FS-147)
This commit is contained in:
Paldiu 2021-03-20 22:14:10 -05:00 committed by GitHub
commit 2725857364
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)