Skip to content

Commit 4ac1d81

Browse files
Fix deprecation warnings
1 parent 57044a8 commit 4ac1d81

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -802,7 +802,7 @@ impl Context {
802802
BLOG_PRIMARY_BRANCH,
803803
&format!(
804804
"posts/inside-rust/{}-{}-prerelease.md",
805-
chrono::Utc::today().format("%Y-%m-%d"),
805+
chrono::Utc::now().date_naive().format("%Y-%m-%d"),
806806
version,
807807
),
808808
&blog_contents,
@@ -839,7 +839,7 @@ impl Context {
839839
//
840840
// https://users.rust-lang.org/c/announcements/6
841841
let announcements_category = 6;
842-
let date = chrono::Utc::today().format("%Y/%m/%d");
842+
let date = chrono::Utc::now().date_naive().format("%Y/%m/%d");
843843
discourse.create_topic(
844844
announcements_category,
845845
&format!("Rust {version}"),

0 commit comments

Comments
 (0)