Merge branch 'stable-3.5'

* stable-3.5:
  Fetch change version from refdb on Git protocol v2
  Do not cache negative results from open changes / timestamp lookups
  Fix 'illegal format conversion' compilation error
  follow-up to "Exclude repo from ChangeCacheKey..."
  Exclude repo from ChangeCacheKey equals/hash code calculation

Change-Id: If2e339ebb82cfb850ce98431e4324449c706b185
diff --git a/src/main/java/com/googlesource/gerrit/modules/gitrefsfilter/ChangesTsCache.java b/src/main/java/com/googlesource/gerrit/modules/gitrefsfilter/ChangesTsCache.java
index 248d347..722d40d 100644
--- a/src/main/java/com/googlesource/gerrit/modules/gitrefsfilter/ChangesTsCache.java
+++ b/src/main/java/com/googlesource/gerrit/modules/gitrefsfilter/ChangesTsCache.java
@@ -49,7 +49,7 @@
           .createChecked(key.repo(), key.project(), key.changeId(), key.changeRevision())
           .getChange()
           .getLastUpdatedOn()
-          .getTime();
+          .toEpochMilli();
     }
   }
 }