mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api.git
synced 2025-01-23 17:26:46 +00:00
fix: timezone awareness of automatic backup task
This commit is contained in:
parent
c9d20e8efd
commit
eafc7a412c
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue