aboutsummaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit.junit/src/org/eclipse/jgit/junit/TestRepository.java
diff options
context:
space:
mode:
authorMatthias Sohn <matthias.sohn@sap.com>2024-12-28 21:48:24 +0000
committerGerrit Code Review <support@gerrithub.io>2024-12-28 21:48:24 +0000
commit9c7db446b48e21de515f043cdd09fb7689e31469 (patch)
tree1326936c4a4a994d51ac9560748227247a1580e9 /org.eclipse.jgit.junit/src/org/eclipse/jgit/junit/TestRepository.java
parent9df4831f8eff4cc04311a958d2aa0cb1fdbc9ac1 (diff)
parent57dbbfe98b7f80830fbfb49aa35335052d2c6f9f (diff)
downloadjgit-9c7db446b48e21de515f043cdd09fb7689e31469.tar.gz
jgit-9c7db446b48e21de515f043cdd09fb7689e31469.zip
Merge changes If4d68363,I1d1f174f,I107af033
* changes: PackWriterBitmapPreparer: Use SystemReader.now() instead of deprecated method TestRepository: Stop using deprecated methods in SystemReader DfsGarbageCollector: Use SystemReader.now() instead of getCurrentTime()
Diffstat (limited to 'org.eclipse.jgit.junit/src/org/eclipse/jgit/junit/TestRepository.java')
-rw-r--r--org.eclipse.jgit.junit/src/org/eclipse/jgit/junit/TestRepository.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/org.eclipse.jgit.junit/src/org/eclipse/jgit/junit/TestRepository.java b/org.eclipse.jgit.junit/src/org/eclipse/jgit/junit/TestRepository.java
index e53dbf1bfc..2d00a850e5 100644
--- a/org.eclipse.jgit.junit/src/org/eclipse/jgit/junit/TestRepository.java
+++ b/org.eclipse.jgit.junit/src/org/eclipse/jgit/junit/TestRepository.java
@@ -159,8 +159,8 @@ public class TestRepository<R extends Repository> implements AutoCloseable {
this.pool = rw;
this.inserter = db.newObjectInserter();
this.mockSystemReader = reader;
- long now = mockSystemReader.getCurrentTime();
- int tz = mockSystemReader.getTimezone(now);
+ Instant now = mockSystemReader.now();
+ ZoneId tz = mockSystemReader.getTimeZoneAt(now);
defaultAuthor = new PersonIdent(AUTHOR, AUTHOR_EMAIL, now, tz);
defaultCommitter = new PersonIdent(COMMITTER, COMMITTER_EMAIL, now, tz);
}