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 d73d961
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ 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 d73d961

Please sign in to comment.