Skip to content

Commit

Permalink
Review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
malhotrashivam committed Nov 13, 2023
1 parent 2d6c00d commit 2171ab8
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ public static long epochNanosUTC(@Nullable final LocalDateTime localDateTime) {
if (localDateTime == null) {
return QueryConstants.NULL_LONG;
}
return DateTimeUtils.epochNanos(localDateTime.atZone(ZoneId.of("UTC")));
return DateTimeUtils.secondsToNanos(localDateTime.toEpochSecond(ZoneOffset.UTC))
+ localDateTime.toLocalTime().getNano();
}

/**
Expand Down

0 comments on commit 2171ab8

Please sign in to comment.