From 221b9bd007d0510533f52afed17ed3708e97a5bc Mon Sep 17 00:00:00 2001 From: thiloho <123883702+thiloho@users.noreply.github.com> Date: Wed, 22 Nov 2023 00:55:52 +0100 Subject: [PATCH] Take timezones for todos into account --- flake.lock | 6 +++--- nixos-configurations/server/default.nix | 2 +- nixos-configurations/shared-desktop.nix | 1 + 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/flake.lock b/flake.lock index a3ae624..a3afb00 100644 --- a/flake.lock +++ b/flake.lock @@ -192,11 +192,11 @@ "website": { "flake": false, "locked": { - "lastModified": 1698328976, - "narHash": "sha256-mCQyrnOglOPVfRNDGka8rE5fga7Oi1v+tjkIERsp0O0=", + "lastModified": 1700407082, + "narHash": "sha256-B28qBl/MmVB2n0D9ka/wFBZQNq02yZfzdbchV3T0TTc=", "owner": "thiloho", "repo": "website", - "rev": "cf4a8e081dc479652bb86a538e94781245783b7b", + "rev": "7523052a3f46db6708769eadb106ad32d7241423", "type": "github" }, "original": { diff --git a/nixos-configurations/server/default.nix b/nixos-configurations/server/default.nix index 72c5da8..59122e2 100644 --- a/nixos-configurations/server/default.nix +++ b/nixos-configurations/server/default.nix @@ -150,7 +150,7 @@ pkgs.postgresql_15 ]; script = '' - psql -d todos -c "UPDATE user_todo SET is_overdue = true WHERE due_date::date < CURRENT_DATE AND is_completed = false AND is_overdue = false" + psql -d todos -c "UPDATE user_todo SET is_overdue = true WHERE due_date::date < (CURRENT_DATE + INTERVAL '1 hour') AND is_completed = false AND is_overdue = false" ''; serviceConfig = { User = "postgres"; diff --git a/nixos-configurations/shared-desktop.nix b/nixos-configurations/shared-desktop.nix index 822d70c..4d8f0fe 100644 --- a/nixos-configurations/shared-desktop.nix +++ b/nixos-configurations/shared-desktop.nix @@ -87,6 +87,7 @@ discord qbittorrent neofetch + godot_4 ]; }; };