From 08076d4cd8d09e6a7e570054d5199dc2d24928f5 Mon Sep 17 00:00:00 2001 From: mrvladus Date: Sat, 6 Jan 2024 12:33:00 +0300 Subject: [PATCH] fix datetime --- errands/widgets/components.py | 1 + io.github.mrvladus.List.Devel.json | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/errands/widgets/components.py b/errands/widgets/components.py index ae231ad8..329fbc52 100644 --- a/errands/widgets/components.py +++ b/errands/widgets/components.py @@ -189,6 +189,7 @@ def get_datetime_as_int(self) -> int: return int(f"{self.datetime[:8]}{self.datetime[9:]}") if self.datetime else 0 def set_datetime(self, dt: str): + dt = datetime.datetime.fromisoformat(dt).strftime("%Y%m%dT%H%M00") self.lock_signals = True if dt: self.hour.set_value(int(dt[9:11])) diff --git a/io.github.mrvladus.List.Devel.json b/io.github.mrvladus.List.Devel.json index 6f839ab7..0d853336 100644 --- a/io.github.mrvladus.List.Devel.json +++ b/io.github.mrvladus.List.Devel.json @@ -9,7 +9,8 @@ "--socket=wayland", "--socket=fallback-x11", "--share=ipc", - "--share=network" + "--share=network", + "--talk-name=org.freedesktop.secrets" ], "cleanup": [ "/lib/debug" @@ -19,7 +20,6 @@ { "name": "errands", "buildsystem": "meson", - "run-tests:": true, "config-opts": [ "-Dprofile=development" ],