From d14e6f720c23c2502ef259b0ea06dfaa98b059bf Mon Sep 17 00:00:00 2001 From: Thomas Waldmann Date: Sun, 21 Feb 2016 21:11:56 +0100 Subject: [PATCH] --list-format: make it compatible with old archives they do not have atime and ctime, use mtime instead. --- borg/archiver.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/borg/archiver.py b/borg/archiver.py index c2b96df3b..db5ad7559 100644 --- a/borg/archiver.py +++ b/borg/archiver.py @@ -462,8 +462,8 @@ class Archiver: mtime = safe_timestamp(item[b'mtime']) if use_user_format: - atime = safe_timestamp(item[b'atime']) - ctime = safe_timestamp(item[b'ctime']) + atime = safe_timestamp(item.get(b'atime') or item[b'mtime']) + ctime = safe_timestamp(item.get(b'ctime') or item[b'mtime']) if b'source' in item: source = item[b'source']