Skip to content

Commit 68dc4a9

Browse files
committed
Update nanos in a day function
1 parent 89dfef0 commit 68dc4a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/util/DateTimeUtils.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -885,6 +885,6 @@ object DateTimeUtils extends SparkDateTimeUtils {
885885
* @return The number of nanoseconds past midnight on that day.
886886
*/
887887
def getNanosInADay(micros: Long): Long = {
888-
toJulianDay(micros)._2
888+
localTimeToNanos(microsToLocalDateTime(micros).toLocalTime)
889889
}
890890
}

0 commit comments

Comments
 (0)