mirror of
https://github.com/essentials/Essentials.git
synced 2025-08-19 04:52:30 +02:00
Fixing display timezone if the server isn't running GMT+1
This commit is contained in:
@@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user