This commit is contained in:
2023-05-09 00:09:06 +02:00
parent 678b65146b
commit de757e7e50
3 changed files with 4 additions and 4 deletions

View File

@@ -127,7 +127,7 @@ impl FromVecExpression<Book> for Book {
},
uploaded: match &value[2] {
sql_parse::Expression::String(v) => {
NaiveDateTime::parse_from_str(&v.value.to_string(), "%Y-%m-%d %H:%M:%S")
NaiveDateTime::parse_from_str(&v.value, "%Y-%m-%d %H:%M:%S")
.unwrap()
.date()
}