From 0169510df04325cb37c4f825af87c71686fbd74d Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Tue, 17 Oct 2023 12:05:45 -0400 Subject: [PATCH] Fix up datestring generation --- daemon-common/vm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daemon-common/vm.py b/daemon-common/vm.py index 20604291..f982a221 100644 --- a/daemon-common/vm.py +++ b/daemon-common/vm.py @@ -1360,7 +1360,7 @@ def backup_vm( # 3. Set datestring in YYYYMMDDHHMMSS format now = datetime.now() - datestring = f"{now.year}{now.month}{now.day}{now.hour}{now.minute}{now.second}" + datestring = now.strftime("%Y%m%d%H%M%S") snapshot_name = f"backup_{datestring}"