aboutsummaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit.junit/src/org/eclipse
diff options
context:
space:
mode:
authorIvan Frade <ifrade@google.com>2024-11-12 12:26:02 -0800
committerIvan Frade <ifrade@google.com>2024-11-13 16:00:08 -0800
commit236778e3101604b701b67e8e6c27be0e2bb8a1ff (patch)
tree8b953d826226bae523fac3446560172635217767 /org.eclipse.jgit.junit/src/org/eclipse
parent1c326c4e07b1023ef17961661ed6e4f29ffeeee8 (diff)
downloadjgit-236778e3101604b701b67e8e6c27be0e2bb8a1ff.tar.gz
jgit-236778e3101604b701b67e8e6c27be0e2bb8a1ff.zip
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
Diffstat (limited to 'org.eclipse.jgit.junit/src/org/eclipse')
-rw-r--r--org.eclipse.jgit.junit/src/org/eclipse/jgit/junit/MockSystemReader.java2
1 files changed, 1 insertions, 1 deletions
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