Take timezones for todos into account

This commit is contained in:
thiloho
2023-11-22 00:55:52 +01:00
parent 1e7489fae6
commit 221b9bd007
3 changed files with 5 additions and 4 deletions

6
flake.lock generated
View File

@@ -192,11 +192,11 @@
"website": { "website": {
"flake": false, "flake": false,
"locked": { "locked": {
"lastModified": 1698328976, "lastModified": 1700407082,
"narHash": "sha256-mCQyrnOglOPVfRNDGka8rE5fga7Oi1v+tjkIERsp0O0=", "narHash": "sha256-B28qBl/MmVB2n0D9ka/wFBZQNq02yZfzdbchV3T0TTc=",
"owner": "thiloho", "owner": "thiloho",
"repo": "website", "repo": "website",
"rev": "cf4a8e081dc479652bb86a538e94781245783b7b", "rev": "7523052a3f46db6708769eadb106ad32d7241423",
"type": "github" "type": "github"
}, },
"original": { "original": {

View File

@@ -150,7 +150,7 @@
pkgs.postgresql_15 pkgs.postgresql_15
]; ];
script = '' 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 = { serviceConfig = {
User = "postgres"; User = "postgres";

View File

@@ -87,6 +87,7 @@
discord discord
qbittorrent qbittorrent
neofetch neofetch
godot_4
]; ];
}; };
}; };