diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2022-02-19 15:33:47 +0100 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2022-02-19 15:33:47 +0100 |
commit | f3bafaf453b3029abe0d46b88a9e3610f159cc53 (patch) | |
tree | b9a3da828d9239ae340cc9b39a96bea8decbe363 | |
parent | d795c8e4031243f27ced42ad0001f0718626b02e (diff) | |
download | nixos-f3bafaf453b3029abe0d46b88a9e3610f159cc53.tar nixos-f3bafaf453b3029abe0d46b88a9e3610f159cc53.tar.gz nixos-f3bafaf453b3029abe0d46b88a9e3610f159cc53.tar.bz2 nixos-f3bafaf453b3029abe0d46b88a9e3610f159cc53.tar.xz nixos-f3bafaf453b3029abe0d46b88a9e3610f159cc53.zip |
vidhar: ...
-rw-r--r-- | modules/zfssnap/zfssnap.py | 2 |
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 | ||
33 | def _snap_name(item, time=_now()): | 33 | def _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 | ||
37 | def _log_cmd(*args): | 37 | def _log_cmd(*args): |