fix:问题修复
This commit is contained in:
@@ -184,4 +184,9 @@ public class CoolDateUtils {
|
||||
Duration duration = Duration.between(start, end);
|
||||
return duration.toMinutes();
|
||||
}
|
||||
|
||||
public static Date localDate2Date(LocalDate localDate) {
|
||||
ZonedDateTime zonedDateTime = localDate.atStartOfDay(ZoneId.systemDefault());
|
||||
return Date.from(zonedDateTime.toInstant());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user