diff --git a/Plan/common/src/main/java/com/djrapitops/plan/settings/config/PlanConfig.java b/Plan/common/src/main/java/com/djrapitops/plan/settings/config/PlanConfig.java index 351daa787..4f556b2dd 100644 --- a/Plan/common/src/main/java/com/djrapitops/plan/settings/config/PlanConfig.java +++ b/Plan/common/src/main/java/com/djrapitops/plan/settings/config/PlanConfig.java @@ -108,10 +108,10 @@ public class PlanConfig extends Config { return foundTZ.orElse(TimeZone.getTimeZone(ZoneId.of("UTC"))); } - public int getTimeZoneOffsetHours() { - int offset = getTimeZone().getOffset(System.currentTimeMillis()); + public double getTimeZoneOffsetHours() { + int offsetMs = getTimeZone().getOffset(System.currentTimeMillis()); int hourMs = (int) TimeUnit.HOURS.toMillis(1L); - return -offset / hourMs; + return -offsetMs * 1.0 / hourMs; } public Path getPageExportPath() {