aboutsummaryrefslogtreecommitdiff
path: root/src/models/properties/tests.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/models/properties/tests.rs')
-rw-r--r--src/models/properties/tests.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/models/properties/tests.rs b/src/models/properties/tests.rs
index 022f080..86bead8 100644
--- a/src/models/properties/tests.rs
+++ b/src/models/properties/tests.rs
@@ -3,7 +3,7 @@ use chrono::NaiveDate;
#[test]
fn verify_date_parsing() {
- let date = NaiveDate::from_ymd(2021, 01, 02);
+ let date = NaiveDate::from_ymd_opt(2021, 01, 02).unwrap();
let result = serde_json::to_string(&DateOrDateTime::Date(date)).unwrap();
let parsed: DateOrDateTime = serde_json::from_str(&result).unwrap();
println!("{:?}", parsed);