Fix up datestring generation

This commit is contained in:
Joshua Boniface 2023-10-17 12:05:45 -04:00
parent a58c1d5a8c
commit 0169510df0
1 changed files with 1 additions and 1 deletions

View File

@ -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}"