mirror of
https://github.com/openhab/openhab-addons.git
synced 2025-01-10 15:11:59 +01:00
[astro] Fix IllegalArgumentException in debug message (#13884)
Formatter should get Date object. Closes #13871 Signed-off-by: Hilbrand Bouwkamp <hilbrand@h72.nl>
This commit is contained in:
parent
22d5518ff4
commit
a3ad12ba39
@ -310,7 +310,7 @@ public abstract class AstroThingHandler extends BaseThingHandler {
|
||||
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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user