Skip to content

Commit 1e0d262

Browse files
author
Michael Hoenig
committed
use datetime_from_dir() to obtain timestamps
1 parent 7aad923 commit 1e0d262

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/borg_import/rsynchl.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
from .helpers.discover import discover, parser
44
from .helpers.names import make_name
5-
from .helpers.timestamps import datetime_from_mtime
5+
from .helpers.timestamps import datetime_from_mtime, datetime_from_dir
66

77

88
def get_rsyncsnapshots(root):
@@ -15,6 +15,7 @@ def get_rsyncsnapshots(root):
1515
meta = dict(
1616
name=make_name(parsed['snapshot_name']),
1717
path=abs_path,
18-
timestamp=datetime_from_mtime(abs_path),
18+
#timestamp=datetime_from_mtime(abs_path),
19+
timestamp=datetime_from_dir(abs_path),
1920
)
2021
yield meta

0 commit comments

Comments
 (0)