Skip to content

Commit

Permalink
Merge 640072f into e1a6a3d
Browse files Browse the repository at this point in the history
  • Loading branch information
cowboysync authored Aug 18, 2022
2 parents e1a6a3d + 640072f commit 1c12200
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -331,6 +331,9 @@ private String getDateTimeText(final Comparable<?> endpoint) {
if (endpoint instanceof TemporalAccessor) {
return dateTimeFormatter.format((TemporalAccessor) endpoint);
}
if (endpoint instanceof java.sql.Date) {
return dateTimeFormatter.format(((java.sql.Date) endpoint).toLocalDate().atStartOfDay(ZoneId.systemDefault()));
}
if (endpoint instanceof Date) {
return dateTimeFormatter.format(((Date) endpoint).toInstant().atZone(ZoneId.systemDefault()).toLocalDateTime());
}
Expand Down

0 comments on commit 1c12200

Please sign in to comment.