andreachild commented on code in PR #3267:
URL: https://github.com/apache/tinkerpop/pull/3267#discussion_r2488317021


##########
gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/step/map/DateDiffStep.java:
##########
@@ -95,7 +95,7 @@ protected Long map(final Traverser.Admin<S> traverser) {
         }
 
         // let's not throw exception and assume null date == 0
-        return otherDate == null ? date.toEpochSecond() : 
Duration.between(otherDate, date).getSeconds();
+        return otherDate == null ? date.toEpochSecond() : 
Duration.between(otherDate, date).toMillis();

Review Comment:
   Yes! Thanks for catching. I've fixed it to return milliseconds.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to