From 6accc069c99be18b28173c63f6379cd6fb0a3969 Mon Sep 17 00:00:00 2001 From: Mariusz Bialonczyk Date: Sat, 3 Oct 2026 19:53:02 +0200 Subject: [PATCH] cosmetics: prefix days after tomorrow with weekdays Prefix the date with the weekday name for the third forecast day and later, e.g. "Monday, 2026-10-05", consistent with the existing "Today, " and "Tomorrow, " prefixes. The weekday is localized according to --lang. The date itself is still formatted with --date-format. --- src/main.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main.rs b/src/main.rs index 4b93c88..cd78ab7 100644 --- a/src/main.rs +++ b/src/main.rs @@ -206,6 +206,9 @@ fn main() { } let date = NaiveDate::parse_from_str(day["date"].as_str().unwrap(), "%Y-%m-%d").unwrap(); let locale = Locale::try_from(lang.locale_str().as_str()).unwrap_or(Locale::en_US); + if i >= 2 { + tooltip += &format!("{}, ", date.format_localized("%A", locale)); + } tooltip += &format!( "{}\n", date.format_localized(args.date_format.as_str(), locale)