@Test public void utc_with_seconds() { LocalDateTime t = converter.convert("2016-12-10T19:49:55Z"); assertEquals(2016, t.getYear()); assertEquals(12, t.getMonth().getValue()); assertEquals(10, t.getDayOfMonth()); assertEquals(19, t.getHour()); assertEquals(49, t.getMinute()); assertEquals(55, t.getSecond()); assertEquals(0, t.get(ChronoField.MILLI_OF_SECOND)); }
@Override public LocalDateTime convert(String s) { if (StringUtils.isBlank(s)) { return null; } else { ZonedDateTime zonedDateTime = ZonedDateTime.parse(s); return Time.toLocalDateTime(zonedDateTime); } }
LocalDateTimeConverter implements Converter<String, LocalDateTime> { @Override public LocalDateTime convert(String s) { if (StringUtils.isBlank(s)) { return null; } else { ZonedDateTime zonedDateTime = ZonedDateTime.parse(s); return Time.toLocalDateTime(zonedDateTime); } } }
LocalDateTimeConverter implements Converter<String, LocalDateTime> { @Override public LocalDateTime convert(String s) { if (StringUtils.isBlank(s)) { return null; } else { ZonedDateTime zonedDateTime = ZonedDateTime.parse(s); return Time.toLocalDateTime(zonedDateTime); } }  }
LocalDateTimeConverter implements Converter<String, LocalDateTime> { @Override public LocalDateTime convert(String s) { if (StringUtils.isBlank(s)) { return null; } else { ZonedDateTime zonedDateTime = ZonedDateTime.parse(s); return Time.toLocalDateTime(zonedDateTime); } }  @Override LocalDateTime convert(String s); }
LocalDateTimeConverter implements Converter<String, LocalDateTime> { @Override public LocalDateTime convert(String s) { if (StringUtils.isBlank(s)) { return null; } else { ZonedDateTime zonedDateTime = ZonedDateTime.parse(s); return Time.toLocalDateTime(zonedDateTime); } }  @Override LocalDateTime convert(String s);  }