This commit is contained in:
Kitaiti Makoto
2023-01-06 23:38:38 +09:00
parent 3d192c1179
commit 4f796e788c
3 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -65,7 +65,7 @@ pub fn search(query: Option<Form<SearchQuery>>, conn: DbConn, rockets: PlumeRock
if str_query.is_empty() {
render!(search::index(
&(&conn, &rockets).to_context(),
&format!("{}", Utc::today().format("%Y-%m-d"))
&format!("{}", Utc::now().date_naive().format("%Y-%m-d"))
))
} else {
let res = rockets