Skip to content

Commit

Permalink
fix datetime
Browse files Browse the repository at this point in the history
  • Loading branch information
mrvladus committed Jan 6, 2024
1 parent 0f64968 commit 08076d4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions errands/widgets/components.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]))
Expand Down
4 changes: 2 additions & 2 deletions io.github.mrvladus.List.Devel.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
"--socket=wayland",
"--socket=fallback-x11",
"--share=ipc",
"--share=network"
"--share=network",
"--talk-name=org.freedesktop.secrets"
],
"cleanup": [
"/lib/debug"
Expand All @@ -19,7 +20,6 @@
{
"name": "errands",
"buildsystem": "meson",
"run-tests:": true,
"config-opts": [
"-Dprofile=development"
],
Expand Down

0 comments on commit 08076d4

Please sign in to comment.