summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2022-02-19 15:33:47 +0100
committerGregor Kleen <gkleen@yggdrasil.li>2022-02-19 15:33:47 +0100
commitf3bafaf453b3029abe0d46b88a9e3610f159cc53 (patch)
treeb9a3da828d9239ae340cc9b39a96bea8decbe363 /modules
parentd795c8e4031243f27ced42ad0001f0718626b02e (diff)
downloadnixos-f3bafaf453b3029abe0d46b88a9e3610f159cc53.tar
nixos-f3bafaf453b3029abe0d46b88a9e3610f159cc53.tar.gz
nixos-f3bafaf453b3029abe0d46b88a9e3610f159cc53.tar.bz2
nixos-f3bafaf453b3029abe0d46b88a9e3610f159cc53.tar.xz
nixos-f3bafaf453b3029abe0d46b88a9e3610f159cc53.zip
vidhar: ...
Diffstat (limited to 'modules')
-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):