From a1a61ff7c8c8ca409a62f455765e0e4782baf4cc Mon Sep 17 00:00:00 2001 From: Jacob Laursen Date: Mon, 25 Nov 2024 22:30:14 +0100 Subject: [PATCH] Simplify DateTimeType handling for Met Office DataHub Signed-off-by: Jacob Laursen --- .../metofficedatahub/internal/MetOfficeDataHubSiteHandler.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bundles/org.openhab.binding.metofficedatahub/src/main/java/org/openhab/binding/metofficedatahub/internal/MetOfficeDataHubSiteHandler.java b/bundles/org.openhab.binding.metofficedatahub/src/main/java/org/openhab/binding/metofficedatahub/internal/MetOfficeDataHubSiteHandler.java index 0ed30b8fae3..f2a8c41508a 100644 --- a/bundles/org.openhab.binding.metofficedatahub/src/main/java/org/openhab/binding/metofficedatahub/internal/MetOfficeDataHubSiteHandler.java +++ b/bundles/org.openhab.binding.metofficedatahub/src/main/java/org/openhab/binding/metofficedatahub/internal/MetOfficeDataHubSiteHandler.java @@ -564,7 +564,7 @@ public class MetOfficeDataHubSiteHandler extends BaseThingHandler implements ISi } protected State getDateTimeTypeState(@Nullable String value) { - return (value == null) ? UnDefType.UNDEF : new DateTimeType(value).toLocaleZone(); + return (value == null) ? UnDefType.UNDEF : new DateTimeType(value); } protected State getQuantityTypeState(@Nullable Number value, Unit unit) {