Fix tests and compile error for Wayland feat

Also fixes a deprecation error.
This commit is contained in:
Josh Megnauth 2024-10-10 01:56:35 -04:00
parent 28b4dda7e0
commit 64a4cd4cf9
No known key found for this signature in database
GPG key ID: 70813183462EFAD3
2 changed files with 3 additions and 7 deletions

View file

@ -306,7 +306,7 @@ impl Display for FormatTime {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
let date_time = chrono::DateTime::<chrono::Local>::from(self.0);
let now = chrono::Local::now();
if date_time.date() == now.date() {
if date_time.date_naive() == now.date_naive() {
write!(
f,
"{}, {}",