diff --git a/config/config-server/src/com/thoughtworks/go/service/ConfigRepository.java b/config/config-server/src/com/thoughtworks/go/service/ConfigRepository.java
index <HASH>..<HASH> 100644
--- a/config/config-server/src/com/thoughtworks/go/service/ConfigRepository.java
+++ b/config/config-server/src/com/thoughtworks/go/service/ConfigRepository.java
@@ -392,9 +392,9 @@ public class ConfigRepository {
             public void run() throws Exception {
                 try {
                     LOGGER.info("Before GC: {}", git.gc().getStatistics());
-                    long date = systemEnvironment.getConfigGitGCExpireTime();
+                    long expireTimeInMs = systemEnvironment.getConfigGitGCExpireTime();
                     git.gc().setAggressive(systemEnvironment.get(SystemEnvironment.GO_CONFIG_REPO_GC_AGGRESSIVE))
-                            .setExpire(new Date(date))
+                            .setExpire(new Date(System.currentTimeMillis() - expireTimeInMs))
                             .call();
                     LOGGER.info("After GC: {}", git.gc().getStatistics());
                 } catch (GitAPIException e) {
Set gc aggressive to false. Set gc expire time correctly.