Procházet zdrojové kódy

archive metadata: store backup START time into 'time'

except if a timestamp is given via cli, then store that time into 'time'
Thomas Waldmann před 9 roky
rodič
revize
38d2237dad
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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,