lucky24-定时任务-zoneIdHour

This commit is contained in:
khalil
2024-12-18 11:52:06 +08:00
parent c06d18425b
commit ddb687e200

View File

@@ -48,7 +48,7 @@ public class Lucky24Task {
.withNano(0);
Date startTime = DateTimeUtil.converLocalDateTimeToDate(startOfDay.withZoneSameInstant(ZoneId.systemDefault()).toLocalDateTime());
long zoneIdHour = Duration.between(zdt.toInstant(), now.toInstant()).toHours();
long zoneIdHour = Duration.between(startTime.toInstant(), now.toInstant()).toHours();
// 获取当天的最后一秒
ZonedDateTime endOfDay = hourAgo.withHour(23)