This commit is contained in:
Steven Fackler 2022-11-21 15:20:25 -08:00
parent 7faeea5acc
commit 6c18ac09b9
No known key found for this signature in database
GPG Key ID: 408917B7276A5226

View File

@ -6,7 +6,10 @@ use std::error::Error;
use crate::{FromSql, IsNull, ToSql, Type};
fn base() -> NaiveDateTime {
NaiveDate::from_ymd_opt(2000, 1, 1).unwrap().and_hms_opt(0, 0, 0).unwrap()
NaiveDate::from_ymd_opt(2000, 1, 1)
.unwrap()
.and_hms_opt(0, 0, 0)
.unwrap()
}
impl<'a> FromSql<'a> for NaiveDateTime {