summaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit.junit
diff options
context:
space:
mode:
Diffstat (limited to 'org.eclipse.jgit.junit')
-rw-r--r--org.eclipse.jgit.junit/src/org/eclipse/jgit/junit/MockSystemReader.java6
1 files changed, 5 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 b53dce2161..3daaea90c5 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
@@ -137,7 +137,11 @@ public class MockSystemReader extends SystemReader {
@Override
public int getTimezone(long when) {
- return TimeZone.getTimeZone("GMT-03:30").getOffset(when) / (60 * 1000);
+ return getTimeZone().getOffset(when) / (60 * 1000);
}
+ @Override
+ public TimeZone getTimeZone() {
+ return TimeZone.getTimeZone("GMT-03:30");
+ }
}