diff --git a/crates/polars-core/src/chunked_array/temporal/conversion.rs b/crates/polars-core/src/chunked_array/temporal/conversion.rs index 1657e6a754f36..9055622a6b609 100644 --- a/crates/polars-core/src/chunked_array/temporal/conversion.rs +++ b/crates/polars-core/src/chunked_array/temporal/conversion.rs @@ -36,7 +36,7 @@ impl From<&AnyValue<'_>> for NaiveTime { // Used by lazy for literal conversion pub fn datetime_to_timestamp_ns(v: NaiveDateTime) -> i64 { - v.timestamp_nanos() + v.timestamp_nanos_opt() } // Used by lazy for literal conversion