dimas-b commented on code in PR #5337:
URL: https://github.com/apache/iceberg/pull/5337#discussion_r927654707
##########
core/src/main/java/org/apache/iceberg/util/DateTimeUtil.java:
##########
@@ -86,6 +83,10 @@ public static long microsFromTimestamptz(OffsetDateTime
dateTime) {
}
public static String formatTimestampMillis(long millis) {
- return
DATE_FORMAT.format(LocalDateTime.ofInstant(Instant.ofEpochMilli(millis),
ZoneOffset.UTC));
+ return Instant.ofEpochMilli(millis)
+ .atOffset(ZoneOffset.UTC)
Review Comment:
`Instant.ofEpochMilli(...).toString()` already formats in UTC, why bother
with `.atOffset(UTC)`?
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]