[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:
Hilbrand Bouwkamp 2022-12-09 12:31:49 +01:00 committed by GitHub
parent 22d5518ff4
commit a3ad12ba39
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);
}
}