mirror of
https://github.com/borgbackup/borg.git
synced 2025-02-22 06:01:54 +00:00
repo last_modified: use iso8601 timestamp format with --json
like yyyy-mm-ddThh:mm:ss - no tz yet, this likely needs more refactoring to tz aware and utc datetime objects everywhere, currently there are naive datetime objects and also localtime at quite some places.
This commit is contained in:
parent
b64561fe6f
commit
32174dd9c8
1 changed files with 1 additions and 1 deletions
|
@ -2150,7 +2150,7 @@ def basic_json_data(manifest, *, cache=None, extra=None):
|
|||
'mode': key.ARG_NAME,
|
||||
},
|
||||
})
|
||||
data['repository']['last_modified'] = format_time(to_localtime(manifest.last_timestamp.replace(tzinfo=timezone.utc)))
|
||||
data['repository']['last_modified'] = isoformat_time(to_localtime(manifest.last_timestamp.replace(tzinfo=timezone.utc)))
|
||||
if key.NAME.startswith('key file'):
|
||||
data['encryption']['keyfile'] = key.find_key()
|
||||
if cache:
|
||||
|
|
Loading…
Reference in a new issue