From c3310367716e4ee159c828cd726c5560bf69f176 Mon Sep 17 00:00:00 2001 From: Rsl1122 Date: Wed, 1 Nov 2017 10:02:15 +0200 Subject: [PATCH] Fixed Negative Days being displayed #400 --- .../main/java/com/djrapitops/plan/utilities/FormatUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Plan/src/main/java/com/djrapitops/plan/utilities/FormatUtils.java b/Plan/src/main/java/com/djrapitops/plan/utilities/FormatUtils.java index 0cfd57338..810413f7c 100644 --- a/Plan/src/main/java/com/djrapitops/plan/utilities/FormatUtils.java +++ b/Plan/src/main/java/com/djrapitops/plan/utilities/FormatUtils.java @@ -94,7 +94,7 @@ public class FormatUtils { long hours = x % 24; x /= 24; long days = x % 365; - long months = days % 30; + long months = (days - days % 30) / 30; days -= months * 30; x /= 365; long years = x;