This commit is contained in:
Hanno Braun 2023-07-04 11:46:45 +02:00
parent 3f137ba822
commit 881300ee39

View File

@ -6,8 +6,7 @@ use tokio::fs::{self, File};
pub fn date() -> String { pub fn date() -> String {
let now = Utc::now(); let now = Utc::now();
let year = now.year(); format!("{}-{:02}-{:02}", now.year(), now.month(), now.day())
format!("{year}-{:02}-{:02}", now.month(), now.day())
} }
pub async fn create_blog_post_file( pub async fn create_blog_post_file(