Skip to content

Commit

Permalink
[astro] Fix IllegalArgumentException in debug message (openhab#13884)
Browse files Browse the repository at this point in the history
Formatter should get Date object.

Closes openhab#13871

Signed-off-by: Hilbrand Bouwkamp <hilbrand@h72.nl>
  • Loading branch information
Hilbrand authored and nemerdaud committed Feb 28, 2023
1 parent 2e907ca commit 2b43e6e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ public void schedule(Job job, Calendar eventAt) {
monitor.unlock();
}
if (logger.isDebugEnabled()) {
String formattedDate = this.isoFormatter.format(eventAt);
final String formattedDate = this.isoFormatter.format(eventAt.getTime());
logger.debug("Scheduled {} in {}ms (at {})", job, sleepTime, formattedDate);
}
}
Expand Down

0 comments on commit 2b43e6e

Please sign in to comment.