Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobin Rosenberg2011-10-09 12:47:19 +0000
committerRobin Rosenberg2011-10-20 21:49:51 +0000
commit06b183f9b7f902d3e81bea9aa909a044f76d79fb (patch)
treedd94a973ab6ecf87fcfc834881ae48e8adac626f /org.eclipse.jgit.junit/src
parentfb68c7a4cddc9e207f3f191d4bb73e809790cffd (diff)
downloadjgit-06b183f9b7f902d3e81bea9aa909a044f76d79fb.tar.gz
jgit-06b183f9b7f902d3e81bea9aa909a044f76d79fb.tar.xz
jgit-06b183f9b7f902d3e81bea9aa909a044f76d79fb.zip
Add a method to SystemReader to get the time zone
Diffstat (limited to 'org.eclipse.jgit.junit/src')
-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");
+ }
}

Back to the top