From d5864bf5947865b0c05816f44b975bd0d6274aab Mon Sep 17 00:00:00 2001 From: Rsl1122 <24460436+Rsl1122@users.noreply.github.com> Date: Mon, 16 Dec 2019 16:30:35 +0200 Subject: [PATCH] 12am now at start of PunchCard An earlier fix attempt for another bug #247 (ages ago) was still in the code, moving 12 am to the next day by adding 24 hours to the time. Fixed by removing the check Affects issues: - Fixed #712 --- .../plan/delivery/rendering/json/graphs/special/PunchCard.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Plan/common/src/main/java/com/djrapitops/plan/delivery/rendering/json/graphs/special/PunchCard.java b/Plan/common/src/main/java/com/djrapitops/plan/delivery/rendering/json/graphs/special/PunchCard.java index eea845695..4b5d8b282 100644 --- a/Plan/common/src/main/java/com/djrapitops/plan/delivery/rendering/json/graphs/special/PunchCard.java +++ b/Plan/common/src/main/java/com/djrapitops/plan/delivery/rendering/json/graphs/special/PunchCard.java @@ -85,7 +85,7 @@ public class PunchCard { for (int hour = 0; hour < 24; hour++) { int value = scaled[day][hour]; - int x = hour == 0 ? 24 * 3600000 : hour * 3600000; + int x = hour * 3600000; dots.add(new Dot(x, day, value, value)); }