Simplify DateTimeType handling for Met Office DataHub

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
This commit is contained in:
Jacob Laursen 2024-11-25 22:30:14 +01:00 committed by lsiepel
parent 164e333a40
commit a1a61ff7c8

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