Convert DateTime<Local> to NaiveDateTime
Use of DateTime<Local> can lead to excessive inspection of the system timezone. Instead, propagate only a timezone-compensated NaiveDateTime throughout the widgets.
This commit is contained in:
+1
-1
@@ -220,7 +220,7 @@ impl App {
|
||||
};
|
||||
|
||||
let inner = self.inner.lock().unwrap();
|
||||
let time = Local::now();
|
||||
let time = Local::now().naive_local();
|
||||
|
||||
if !inner.visible
|
||||
|| inner.shell_surfaces.len() != *inner.configured_surfaces.lock().unwrap()
|
||||
|
||||
Reference in New Issue
Block a user