Skip to content

Commit

Permalink
✨ 采用LocalDateTime代替Date
Browse files Browse the repository at this point in the history
  • Loading branch information
twelvet-s committed Dec 9, 2024
1 parent 6ff3ccc commit 1fc1667
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ public static Date toDate(LocalDateTime temporalAccessor) {
*/
public static Date toDate(LocalDate temporalAccessor) {
LocalDateTime localDateTime = LocalDateTime.of(temporalAccessor, LocalTime.of(0, 0, 0));
return toDate(localDateTime);
return toDate(localDateTime);
}

/**
Expand Down

0 comments on commit 1fc1667

Please sign in to comment.