summaryrefslogtreecommitdiff
path: root/modules/zfssnap/zfssnap.py
diff options
context:
space:
mode:
Diffstat (limited to 'modules/zfssnap/zfssnap.py')
-rw-r--r--modules/zfssnap/zfssnap.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/zfssnap/zfssnap.py b/modules/zfssnap/zfssnap.py
index 7404b453..46f1b2da 100644
--- a/modules/zfssnap/zfssnap.py
+++ b/modules/zfssnap/zfssnap.py
@@ -31,7 +31,7 @@ def _now():
31 return datetime.now(timezone.utc) 31 return datetime.now(timezone.utc)
32 32
33def _snap_name(item, time=_now()): 33def _snap_name(item, time=_now()):
34 suffix = re.sub(r'\+00:00$', r'Z', time.isoformat()) 34 suffix = re.sub(r'\+00:00$', r'Z', time.isoformat(timespec='seconds'))
35 return f'{item}@auto_{suffix}' 35 return f'{item}@auto_{suffix}'
36 36
37def _log_cmd(*args): 37def _log_cmd(*args):