Fixed Negative Days being displayed #400

This commit is contained in:
Rsl1122 2017-11-01 10:02:15 +02:00
parent 5a87efe5ad
commit c331036771

View File

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