mirror of
https://github.com/thiloho/nixos-config.git
synced 2025-11-22 11:31:36 +01:00
Take timezones for todos into account
This commit is contained in:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user