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

View File

@@ -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";

View File

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