From 7932be526d292701a745c97662ef780fa6360d5e Mon Sep 17 00:00:00 2001 From: Josh Megnauth Date: Wed, 13 Nov 2024 00:48:54 -0500 Subject: [PATCH] fix(time): Update calendar on timezone change Closes: #698 --- cosmic-applet-time/src/window.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/cosmic-applet-time/src/window.rs b/cosmic-applet-time/src/window.rs index acedc249..fa309b9e 100644 --- a/cosmic-applet-time/src/window.rs +++ b/cosmic-applet-time/src/window.rs @@ -431,6 +431,7 @@ impl cosmic::Application for Window { Message::TimezoneUpdate(timezone) => { if let Ok(timezone) = timezone.parse::() { self.now = chrono::Local::now().with_timezone(&timezone).fixed_offset(); + self.date_selected = chrono::NaiveDate::from(self.now.naive_local()); self.timezone = Some(timezone); }