Skip to content

Commit

Permalink
Fix month usage in ZonedDateTime
Browse files Browse the repository at this point in the history
  • Loading branch information
hadleynet committed Jan 13, 2025
1 parent 2e4da1d commit 4ec8c0e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/Graphviz.java
Original file line number Diff line number Diff line change
Expand Up @@ -658,7 +658,7 @@ private static String logicDetails(JsonObject logic) {
} else if (logic.has("date")) {
JsonObject date = logic.get("date").getAsJsonObject();
ZonedDateTime testDate = ZonedDateTime.of(date.get("year").getAsInt(),
date.get("month").getAsInt() - 1, date.get("day").getAsInt(),
date.get("month").getAsInt(), date.get("day").getAsInt(),
date.get("hour").getAsInt(), date.get("minute").getAsInt(),
date.get("second").getAsInt(), date.get("millisecond").getAsInt(),
ZoneId.of("UTC"));
Expand Down

0 comments on commit 4ec8c0e

Please sign in to comment.