From e898312e9e0d1563cd58828cb4b4660984166530 Mon Sep 17 00:00:00 2001 From: Jacob Laursen Date: Sat, 9 Nov 2024 22:24:31 +0100 Subject: [PATCH] Simplify DateTimeType handling for IHC Signed-off-by: Jacob Laursen --- .../converters/DateTimeTypeWSDateValueConverter.java | 7 +++---- .../converters/DateTimeTypeWSTimeValueConverter.java | 7 +++---- .../binding/ihc/internal/handler/IhcHandler.java | 6 +++--- .../binding/ihc/internal/ws/datatypes/WSDate.java | 10 +++++----- 4 files changed, 14 insertions(+), 16 deletions(-) diff --git a/bundles/org.openhab.binding.ihc/src/main/java/org/openhab/binding/ihc/internal/converters/DateTimeTypeWSDateValueConverter.java b/bundles/org.openhab.binding.ihc/src/main/java/org/openhab/binding/ihc/internal/converters/DateTimeTypeWSDateValueConverter.java index 6b5866aff6e..17b25579ccb 100644 --- a/bundles/org.openhab.binding.ihc/src/main/java/org/openhab/binding/ihc/internal/converters/DateTimeTypeWSDateValueConverter.java +++ b/bundles/org.openhab.binding.ihc/src/main/java/org/openhab/binding/ihc/internal/converters/DateTimeTypeWSDateValueConverter.java @@ -12,10 +12,9 @@ */ package org.openhab.binding.ihc.internal.converters; -import java.time.ZonedDateTime; +import java.time.ZoneId; import java.util.Calendar; import java.util.GregorianCalendar; -import java.util.TimeZone; import org.eclipse.jdt.annotation.NonNull; import org.openhab.binding.ihc.internal.ws.exeptions.ConversionException; @@ -34,13 +33,13 @@ public class DateTimeTypeWSDateValueConverter implements Converter