1
0
Fork 0
mirror of https://github.com/borgbackup/borg.git synced 2025-02-25 07:23:28 +00:00

bugfix: switch archive timestamps to utc

we use utc for file timestamps and manifest timestamp,
so let's use utc for archives also.
This commit is contained in:
Thomas Waldmann 2022-12-04 10:52:24 +01:00
parent 1f859c9f17
commit 15139a80c9
No known key found for this signature in database
GPG key ID: 243ACFA951F78E01

View file

@ -127,4 +127,4 @@ def isoformat(self):
def archive_ts_now():
"""return tz-aware datetime obj for current time for usage as archive timestamp"""
return datetime.now().astimezone() # local time / local timezone
return datetime.now(timezone.utc) # utc time / utc timezone