Skip to content

Commit 574207a

Browse files
committed
Insert current year into date at top
1 parent 2cf2630 commit 574207a

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

src/main.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -216,8 +216,10 @@ fn root(request: Request, state: Arc<RwLock<State>>) {
216216
.replace("🎵", &song_string)
217217
.replace("📌", &location_string);
218218

219-
let month_abbr = chrono::Utc::now().format("%b").to_string().to_uppercase();
220-
let top_right = format!("{month_abbr} 2025");
219+
let utc_now = chrono::Utc::now();
220+
let month_fmt = utc_now.format("%b");
221+
let year_fmt = utc_now.format("%Y");
222+
let top_right = format!("{month_fmt} {year_fmt}");
221223

222224
paper_page(request, "PROFILE CIRCULAR REV 10", &body, Some(("MALTED.DEV", &top_right)));
223225
}

0 commit comments

Comments
 (0)