diff --git a/bundles/org.openhab.binding.awattar/src/main/java/org/openhab/binding/awattar/internal/AwattarUtil.java b/bundles/org.openhab.binding.awattar/src/main/java/org/openhab/binding/awattar/internal/AwattarUtil.java index e6ba28341c0..37ee5e66955 100644 --- a/bundles/org.openhab.binding.awattar/src/main/java/org/openhab/binding/awattar/internal/AwattarUtil.java +++ b/bundles/org.openhab.binding.awattar/src/main/java/org/openhab/binding/awattar/internal/AwattarUtil.java @@ -21,7 +21,6 @@ import javax.measure.quantity.Time; import org.eclipse.jdt.annotation.NonNullByDefault; import org.openhab.core.i18n.TimeZoneProvider; -import org.openhab.core.library.types.DateTimeType; import org.openhab.core.library.types.QuantityType; import org.openhab.core.library.unit.Units; @@ -47,10 +46,6 @@ public class AwattarUtil { return ZonedDateTime.now(zone).truncatedTo(ChronoUnit.DAYS).plusHours(hour); } - public static DateTimeType getDateTimeType(long time, TimeZoneProvider tz) { - return new DateTimeType(ZonedDateTime.ofInstant(Instant.ofEpochMilli(time), tz.getTimeZone())); - } - public static QuantityType