mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2024-09-10 20:29:28 +00:00
Fixing display timezone if the server isn't running GMT+1
This commit is contained in:
parent
abbeb0a212
commit
5bb86309f6
|
@ -31,6 +31,8 @@ public final class DescParseTickFormat
|
|||
|
||||
static
|
||||
{
|
||||
SDFTwentyFour.setTimeZone(TimeZone.getTimeZone("GMT"));
|
||||
SDFTwelve.setTimeZone(TimeZone.getTimeZone("GMT"));
|
||||
|
||||
nameToTicks.put("sunrise", 23000);
|
||||
nameToTicks.put("rise", 23000);
|
||||
|
@ -196,7 +198,7 @@ public final class DescParseTickFormat
|
|||
public static long hoursMinutesToTicks(final int hours, final int minutes)
|
||||
{
|
||||
long ret = ticksAtMidnight;
|
||||
ret += (hours - 1) * ticksPerHour;
|
||||
ret += (hours) * ticksPerHour;
|
||||
|
||||
ret += (minutes / 60.0) * ticksPerHour;
|
||||
|
||||
|
|
Loading…
Reference in a new issue