Merge branch 'cc_20230520_partner' of http://gitlab.coolcollege.cn/hangzhou/java/coolstore-partner-manage into cc_20230520_partner
This commit is contained in:
@@ -66,7 +66,7 @@ public class CoolDateUtils {
|
|||||||
LocalDate today = LocalDate.now();
|
LocalDate today = LocalDate.now();
|
||||||
LocalDate thirdDay = today.plusDays(day);
|
LocalDate thirdDay = today.plusDays(day);
|
||||||
LocalDateTime thirdDayMidnight = LocalDateTime.of(thirdDay, LocalTime.MIDNIGHT);
|
LocalDateTime thirdDayMidnight = LocalDateTime.of(thirdDay, LocalTime.MIDNIGHT);
|
||||||
LocalDateTime thirdDay235959 = thirdDayMidnight.with(LocalTime.MIN);
|
LocalDateTime thirdDay235959 = thirdDayMidnight.with(LocalTime.MAX);
|
||||||
ZonedDateTime zonedDateTime = ZonedDateTime.of(thirdDay235959, ZoneId.systemDefault());
|
ZonedDateTime zonedDateTime = ZonedDateTime.of(thirdDay235959, ZoneId.systemDefault());
|
||||||
return Date.from(zonedDateTime.toInstant());
|
return Date.from(zonedDateTime.toInstant());
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user