Skip to content

Commit

Permalink
Merge pull request #31 from refractions-research/5xbugfixes
Browse files Browse the repository at this point in the history
5.x bug fixes
  • Loading branch information
cmhodgson authored Sep 26, 2024
2 parents 27f7760 + 44afae0 commit ff56670
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,14 @@ static String format(final DateFormat format, final Date date) {
return format.format(date);
}

static String format(final DateTimeFormatter formatter, final LocalDate date) {
if (date == null) {
return null;
} else {
return formatter.format(date);
}
}

static String format(final int dateStyle, final int timeStyle, final Timestamp timestamp) {
final DateFormat format = DateFormat.getDateTimeInstance(dateStyle, timeStyle);
return format(format, timestamp);
Expand Down

0 comments on commit ff56670

Please sign in to comment.