Make indexing date format consistent (#72)

This commit is contained in:
Aeledfyr 2020-10-12 16:08:43 -05:00 committed by GitHub
parent b8eda40937
commit 1072d1306b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -71,7 +71,7 @@ pub async fn index_local(pool: PgPool) -> Result<Vec<UploadSearchMod>, IndexingE
icon_url = url;
}
let formatted = result.published.to_string();
let formatted = result.published.to_rfc3339();
let timestamp = result.published.timestamp();
docs_to_add.push(UploadSearchMod {
mod_id: format!("local-{}", crate::models::ids::ModId(result.id as u64)),