We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 57044a8 commit 4ac1d81Copy full SHA for 4ac1d81
src/main.rs
@@ -802,7 +802,7 @@ impl Context {
802
BLOG_PRIMARY_BRANCH,
803
&format!(
804
"posts/inside-rust/{}-{}-prerelease.md",
805
- chrono::Utc::today().format("%Y-%m-%d"),
+ chrono::Utc::now().date_naive().format("%Y-%m-%d"),
806
version,
807
),
808
&blog_contents,
@@ -839,7 +839,7 @@ impl Context {
839
//
840
// https://users.rust-lang.org/c/announcements/6
841
let announcements_category = 6;
842
- let date = chrono::Utc::today().format("%Y/%m/%d");
+ let date = chrono::Utc::now().date_naive().format("%Y/%m/%d");
843
discourse.create_topic(
844
announcements_category,
845
&format!("Rust {version}"),
0 commit comments