mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api.git
synced 2025-01-24 01:36:38 +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.
|
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):
|
for service in Backups.services_to_back_up(time):
|
||||||
start_backup(service)
|
start_backup(service)
|
||||||
|
|
Loading…
Reference in a new issue