浏览代码

archive metadata: store backup START time into 'time'

except if a timestamp is given via cli, then store that time into 'time'
Thomas Waldmann 9 年之前
父节点
当前提交
38d2237dad
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      borg/archive.py

+ 1 - 1
borg/archive.py

@@ -226,7 +226,7 @@ Number of files: {0.stats.nfiles}'''.format(self)
             raise self.AlreadyExists(name)
         self.items_buffer.flush(flush=True)
         if timestamp is None:
-            timestamp = datetime.utcnow()
+            timestamp = self.start
         metadata = StableDict({
             'version': 1,
             'name': name,