mirror of
https://github.com/AtlasMediaGroup/TotalFreedomMod.git
synced 2024-11-27 01:05:38 +00:00
Merge pull request #38 from AtlasMediaGroup/FS-147
Fix ban expiration (FS-147)
This commit is contained in:
commit
2725857364
@ -169,7 +169,7 @@ public class Ban
|
|||||||
|
|
||||||
public boolean isExpired()
|
public boolean isExpired()
|
||||||
{
|
{
|
||||||
return hasExpiry() && expiryUnix < FUtil.getUnixTime();
|
return hasExpiry() && FUtil.getUnixDate(expiryUnix).before(new Date(FUtil.getUnixTime()));
|
||||||
}
|
}
|
||||||
|
|
||||||
public String bakeKickMessage()
|
public String bakeKickMessage()
|
||||||
|
@ -612,7 +612,7 @@ public class FUtil
|
|||||||
|
|
||||||
public static long getUnixTime()
|
public static long getUnixTime()
|
||||||
{
|
{
|
||||||
return Instant.now().getEpochSecond();
|
return Instant.now().toEpochMilli();
|
||||||
}
|
}
|
||||||
|
|
||||||
public static long getUnixTime(Date date)
|
public static long getUnixTime(Date date)
|
||||||
|
Loading…
Reference in New Issue
Block a user