Here's to hoping this fixes that stupid ban crap.

This commit is contained in:
Paldiu 2021-03-06 12:00:32 -06:00
parent a4ead85701
commit 5c097c83cb

View File

@ -605,12 +605,12 @@ public class FUtil
public static Date getUnixDate(long unix) public static Date getUnixDate(long unix)
{ {
return new Date(unix * 1000); return new Date(unix);
} }
public static long getUnixTime() public static long getUnixTime()
{ {
return System.currentTimeMillis() / 1000L; return Instant.now().getEpochSecond();
} }
public static long getUnixTime(Date date) public static long getUnixTime(Date date)
@ -620,7 +620,7 @@ public class FUtil
return 0; return 0;
} }
return date.getTime() / 1000L; return date.getTime();
} }
public static String getNMSVersion() public static String getNMSVersion()