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:
parent
1f859c9f17
commit
15139a80c9
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue