1
0
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:
KHobbits
2011-08-10 10:41:03 +06:00
parent 95e86f15d2
commit 9068beec56

View File

@@ -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;