Fix timeutil epoch/milli
This commit is contained in:
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user