From f3bafaf453b3029abe0d46b88a9e3610f159cc53 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Sat, 19 Feb 2022 15:33:47 +0100 Subject: vidhar: ... --- modules/zfssnap/zfssnap.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/zfssnap') 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(): return datetime.now(timezone.utc) def _snap_name(item, time=_now()): - suffix = re.sub(r'\+00:00$', r'Z', time.isoformat()) + suffix = re.sub(r'\+00:00$', r'Z', time.isoformat(timespec='seconds')) return f'{item}@auto_{suffix}' def _log_cmd(*args): -- cgit v1.2.3