Skip to content

Commit

Permalink
Update test
Browse files Browse the repository at this point in the history
  • Loading branch information
tustvold committed Oct 30, 2023
1 parent 4e34c66 commit e661e9e
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions parquet_derive/src/parquet_field.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1335,11 +1335,7 @@ mod test {
panic!("Schema and struct disagree on type for {}", stringify!{ henceforth });
}
for (i, r) in &mut records[..num_records].iter_mut().enumerate() {
r.henceforth = ::chrono::naive::NaiveDate::from_num_days_from_ce_opt(vals[i]
+ ((::chrono::naive::NaiveDate::from_ymd_opt(1970, 1, 1).unwrap()
.signed_duration_since(
::chrono::naive::NaiveDate::from_ymd_opt(0, 12, 31).unwrap()
)).num_days()) as i32).unwrap();
r.henceforth = ::chrono::naive::NaiveDate::from_num_days_from_ce_opt(vals[i] + 719163).unwrap();
}
}
}).to_string());
Expand Down

0 comments on commit e661e9e

Please sign in to comment.