Skip to content
Snippets Groups Projects
Commit 1d44476c authored by René Schöne's avatar René Schöne
Browse files

Fixed pattern to parse datetime coming from openHAB.

parent bfdbbe1f
No related branches found
No related tags found
1 merge request!3Integration of Learner
Pipeline #4122 passed
......@@ -12,9 +12,7 @@ aspect ItemHandling {
//--- DateTimeItem.ALTERNATIVE_FORMAT ---
private static final java.time.format.DateTimeFormatter DateTimeItem.ALTERNATIVE_FORMAT = new java.time.format.DateTimeFormatterBuilder()
.appendPattern("yyyy-MM-dd'T'HH':'mm'Z'")
.parseDefaulting(java.time.temporal.ChronoField.SECOND_OF_MINUTE, 0)
.parseDefaulting(java.time.temporal.ChronoField.NANO_OF_SECOND, 0)
.appendPattern("yyyy-MM-dd'T'HH:mm:ss.SSSZ")
.toFormatter()
.withZone(java.time.ZoneId.of("UTC"));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment