diff --git a/bundles/org.openhab.binding.enphase/src/main/java/org/openhab/binding/enphase/internal/handler/EnphaseInverterHandler.java b/bundles/org.openhab.binding.enphase/src/main/java/org/openhab/binding/enphase/internal/handler/EnphaseInverterHandler.java index 4a8fe441d8f..248b7d1cd4a 100644 --- a/bundles/org.openhab.binding.enphase/src/main/java/org/openhab/binding/enphase/internal/handler/EnphaseInverterHandler.java +++ b/bundles/org.openhab.binding.enphase/src/main/java/org/openhab/binding/enphase/internal/handler/EnphaseInverterHandler.java @@ -15,8 +15,6 @@ package org.openhab.binding.enphase.internal.handler; import static org.openhab.binding.enphase.internal.EnphaseBindingConstants.*; import java.time.Instant; -import java.time.ZoneId; -import java.time.ZonedDateTime; import org.eclipse.jdt.annotation.NonNullByDefault; import org.eclipse.jdt.annotation.Nullable; @@ -92,11 +90,7 @@ public class EnphaseInverterHandler extends EnphaseDeviceHandler { if (inverterDTO == null) { state = UnDefType.UNDEF; } else { - final Instant instant = Instant.ofEpochSecond(inverterDTO.lastReportDate); - final ZonedDateTime zonedDateTime = instant.atZone(ZoneId.systemDefault()); - logger.trace("[{}] Epoch time {}, zonedDateTime: {}", getThing().getUID(), inverterDTO.lastReportDate, - zonedDateTime); - state = new DateTimeType(zonedDateTime); + state = new DateTimeType(Instant.ofEpochSecond(inverterDTO.lastReportDate)); } updateState(INVERTER_CHANNEL_LAST_REPORT_DATE, state); }