Skip to content

Commit

Permalink
fix of dataformat for Etc/UTC
Browse files Browse the repository at this point in the history
  • Loading branch information
JiriOndrusek committed Jun 21, 2024
1 parent 2432393 commit ccdb6b6
Showing 1 changed file with 0 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,6 @@ public void ical() throws ParseException, IOException {

static String toFormatedLocalDateTime(ZonedDateTime zonedDateTime) {
String result = zonedDateTime.format(DateTimeFormatter.ofPattern("yyyyMMdd'T'hhmmss"));
if (zonedDateTime.getZone().getId().equals("Etc/UTC")) {
result += "Z";
}
return result;
}

Expand Down

0 comments on commit ccdb6b6

Please sign in to comment.