Fix timeutil epoch/milli

This commit is contained in:
Tim
2025-06-15 16:04:50 +02:00
parent 3dddcdf860
commit e7169e4317

View File

@@ -46,7 +46,7 @@ public class TimeUtil {
} }
public static long nowMonthsAgo(long months) { public static long nowMonthsAgo(long months) {
return LocalDateTime.now().minusMonths(months).atZone(ZoneId.systemDefault()).toEpochSecond(); return LocalDateTime.now().minusMonths(months).atZone(ZoneId.systemDefault()).toInstant().toEpochMilli();
} }
public static long monthLength(long epoch) { public static long monthLength(long epoch) {