2021-04-06T10:03:57.249000072Z too precise? instant.truncatedTo(ChronoUnit.SECONDS) Custom formatter? .withZone! def dtFormatter = DateTimeFormatter.ofLocalizedDateTime(FormatStyle.SHORT).withZone(ZoneId.systemDefault())