Add comment explaining colon erasure on datetime
This commit is contained in:
parent
194dc7a0ff
commit
d6d77690fc
@ -270,6 +270,7 @@ class Repository(Hierarchy):
|
|||||||
snapshot_name = (
|
snapshot_name = (
|
||||||
name
|
name
|
||||||
if name is not None
|
if name is not None
|
||||||
|
# we replace the ':'s, otherwise rsync recognizes this as a remote location
|
||||||
else datetime.datetime.utcnow().isoformat().replace(":", "_")
|
else datetime.datetime.utcnow().isoformat().replace(":", "_")
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user