Cole-Greer commented on code in PR #3090:
URL: https://github.com/apache/tinkerpop/pull/3090#discussion_r2029373722


##########
gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/translator/GolangTranslator.java:
##########
@@ -138,6 +139,11 @@ protected String getSyntax(final Date o) {
             return "time.UnixMilli(" + o.getTime() + ")";
         }
 
+        @Override
+        protected String getSyntax(final OffsetDateTime o) {
+            return "time.UnixMilli(" + o.toInstant().toEpochMilli() + ")";

Review Comment:
   We may be able to preserve more precision as well as the timezone offset via 
https://pkg.go.dev/time#Date



-- 
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