mirror of
https://github.com/openhab/openhab-addons.git
synced 2025-01-10 15:11:59 +01:00
Simplify DateTimeType handling for Met Office DataHub
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
This commit is contained in:
parent
164e333a40
commit
a1a61ff7c8
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user