From 236778e3101604b701b67e8e6c27be0e2bb8a1ff Mon Sep 17 00:00:00 2001 From: Ivan Frade Date: Tue, 12 Nov 2024 12:26:02 -0800 Subject: [PATCH] MockSystemReader: create the right time zone Using this timezone in a later commit, it complains: Exception java.time.DateTimeException: Zone offset minutes and seconds must be negative because hours is negative Change-Id: I5787b51f98109942ac33e0496c5e3761914b2a78 --- .../src/org/eclipse/jgit/junit/MockSystemReader.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/org.eclipse.jgit.junit/src/org/eclipse/jgit/junit/MockSystemReader.java b/org.eclipse.jgit.junit/src/org/eclipse/jgit/junit/MockSystemReader.java index b0a1827265..bf236ab17d 100644 --- a/org.eclipse.jgit.junit/src/org/eclipse/jgit/junit/MockSystemReader.java +++ b/org.eclipse.jgit.junit/src/org/eclipse/jgit/junit/MockSystemReader.java @@ -251,7 +251,7 @@ public class MockSystemReader extends SystemReader { @Override public ZoneId getTimeZoneId() { - return ZoneOffset.ofHoursMinutes(-3, 30); + return ZoneOffset.ofHoursMinutes(-3, -30); } @Override -- 2.39.5