shunping commented on PR #30758:
URL: https://github.com/apache/beam/pull/30758#issuecomment-2099042852

   Just took a closer look in the documentation of joda. Both `DateTime(long)` 
and `Instant.toDateTime()` returns a `DateTime` object using the default 
timezone (which is also explicitly said in the documentation).
   
   - 
https://www.joda.org/joda-time/apidocs/org/joda/time/DateTime.html#DateTime-long-
   - 
https://www.joda.org/joda-time/apidocs/org/joda/time/Instant.html#toDateTime--
   
   This is different from `DateTime(Instant)` where timezone is not mentioned.
   - 
https://www.joda.org/joda-time/apidocs/org/joda/time/DateTime.html#DateTime-java.lang.Object-


-- 
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: github-unsubscr...@beam.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to