Simplify DateTimeType handling for Met Office DataHub

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
This commit is contained in:
Jacob Laursen 2024-11-25 22:30:14 +01:00 committed by Ciprian Pascu
parent 4d58993c59
commit d2e96ef5ce

View File

@ -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) {