diff --git a/tools/automator/src/blog/release.rs b/tools/automator/src/blog/release.rs index 554d7c87f..550c957fa 100644 --- a/tools/automator/src/blog/release.rs +++ b/tools/automator/src/blog/release.rs @@ -14,7 +14,7 @@ use super::util; pub async fn create_release_announcement( octocrab: &Octocrab, ) -> anyhow::Result<()> { - let date = util::date(); + let date = util::now_ymd(); let pull_requests_since_last_release = PullRequestsSinceLastRelease::fetch(octocrab).await?; diff --git a/tools/automator/src/blog/util.rs b/tools/automator/src/blog/util.rs index dc61b008a..aa0b00218 100644 --- a/tools/automator/src/blog/util.rs +++ b/tools/automator/src/blog/util.rs @@ -4,7 +4,7 @@ use anyhow::Context; use chrono::{Datelike, Utc}; use tokio::fs::{self, File}; -pub fn date() -> String { +pub fn now_ymd() -> String { let now = Utc::now(); format!("{}-{:02}-{:02}", now.year(), now.month(), now.day()) }