fix: timezone awareness of automatic backup task
continuous-integration/drone/push Build is failing Details

pull/43/head
Inex Code 2023-07-20 19:42:44 +03:00
parent c9d20e8efd
commit eafc7a412c
1 changed files with 1 additions and 1 deletions

View File

@ -47,6 +47,6 @@ def automatic_backup():
"""
The worker periodic task that starts the automatic backup process.
"""
time = datetime.now()
time = datetime.utcnow().replace(tzinfo=timezone.utc)
for service in Backups.services_to_back_up(time):
start_backup(service)