mirror of
https://github.com/openhab/openhab-addons.git
synced 2025-01-10 15:11:59 +01:00
[remoteopenhab] Fix the pattern to parse DateTime (#13349)
Re-use the same pattern as defined in class DateTimeTyoe. Allows the support of 0 to 9 digits after the seconds. Signed-off-by: Laurent Garnier <lg.hc@free.fr>
This commit is contained in:
parent
fe25216ea6
commit
c4625992af
@ -98,7 +98,7 @@ import com.google.gson.Gson;
|
||||
public class RemoteopenhabBridgeHandler extends BaseBridgeHandler
|
||||
implements RemoteopenhabStreamingDataListener, RemoteopenhabItemsDataListener {
|
||||
|
||||
private static final String DATE_FORMAT_PATTERN = "yyyy-MM-dd'T'HH:mm:ss.SSSZ";
|
||||
private static final String DATE_FORMAT_PATTERN = "yyyy-MM-dd'T'HH:mm[:ss[.SSSSSSSSS][.SSSSSSSS][.SSSSSSS][.SSSSSS][.SSSSS][.SSSS][.SSS][.SS][.S]]Z";
|
||||
private static final DateTimeFormatter FORMATTER_DATE = DateTimeFormatter.ofPattern(DATE_FORMAT_PATTERN);
|
||||
|
||||
private static final int MAX_STATE_SIZE_FOR_LOGGING = 50;
|
||||
|
Loading…
Reference in New Issue
Block a user