diff --git a/bundles/org.openhab.binding.astro/src/main/java/org/openhab/binding/astro/internal/handler/AstroThingHandler.java b/bundles/org.openhab.binding.astro/src/main/java/org/openhab/binding/astro/internal/handler/AstroThingHandler.java index dfb34d61ccbae..c369eb99cde29 100644 --- a/bundles/org.openhab.binding.astro/src/main/java/org/openhab/binding/astro/internal/handler/AstroThingHandler.java +++ b/bundles/org.openhab.binding.astro/src/main/java/org/openhab/binding/astro/internal/handler/AstroThingHandler.java @@ -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); } }