Skip to content

Commit 7e19c20

Browse files
committed
Fix test
1 parent 420a46c commit 7e19c20

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

datafusion/core/tests/sql/timestamp.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -576,8 +576,8 @@ async fn timestamp_add_interval_months() -> Result<()> {
576576
let res2 = actual[0][1].as_str();
577577

578578
let format = "%Y-%m-%dT%H:%M:%S%.6fZ";
579-
let t1_naive = chrono::NaiveDateTime::parse_from_str(res1, format).unwrap();
580-
let t2_naive = chrono::NaiveDateTime::parse_from_str(res2, format).unwrap();
579+
let t1_naive = NaiveDateTime::parse_from_str(res1, format).unwrap();
580+
let t2_naive = NaiveDateTime::parse_from_str(res2, format).unwrap();
581581

582582
let year = t1_naive.year() + (t1_naive.month0() as i32 + 17) / 12;
583583
let month = (t1_naive.month0() + 17) % 12 + 1;

0 commit comments

Comments
 (0)