mirror of
https://github.com/TotalFreedomMC/TotalFreedomMod.git
synced 2024-09-28 12:23:02 +00:00
Merge pull request #30 from AtlasMediaGroup/frontdoor-and-banExpiry-only
fix banning/?? Resolves FS-130
This commit is contained in:
commit
0396b8ad86
|
@ -605,12 +605,12 @@ public class FUtil
|
|||
|
||||
public static Date getUnixDate(long unix)
|
||||
{
|
||||
return new Date(unix * 1000);
|
||||
return new Date(unix);
|
||||
}
|
||||
|
||||
public static long getUnixTime()
|
||||
{
|
||||
return System.currentTimeMillis() / 1000L;
|
||||
return Instant.now().getEpochSecond();
|
||||
}
|
||||
|
||||
public static long getUnixTime(Date date)
|
||||
|
@ -620,7 +620,7 @@ public class FUtil
|
|||
return 0;
|
||||
}
|
||||
|
||||
return date.getTime() / 1000L;
|
||||
return date.getTime();
|
||||
}
|
||||
|
||||
public static String getNMSVersion()
|
||||
|
|
Loading…
Reference in a new issue