Skip to content

Commit

Permalink
fix #195
Browse files Browse the repository at this point in the history
  • Loading branch information
psy0rz committed Sep 26, 2023
1 parent de898fc commit 4e4de2d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions zfs_autobackup/ZfsAuto.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import argparse
import sys
from datetime import time, datetime

from .CliBase import CliBase

Expand Down Expand Up @@ -58,7 +59,11 @@ def parse_args(self, argv):
self.snapshot_time_format = args.snapshot_format.format(args.backup_name)
self.hold_name = args.hold_format.format(args.backup_name)

dt = datetime.utcnow() if args.utc else datetime.now()

self.verbose("")
self.verbose("Current time {} : {}".format(args.utc and "UTC" or " ", dt.strftime("%Y-%m-%d %H:%M:%S")))

self.verbose("Selecting dataset property : {}".format(self.property_name))
self.verbose("Snapshot format : {}".format(self.snapshot_time_format))
self.verbose("Timezone : {}".format("UTC" if args.utc else "Local"))
Expand Down

0 comments on commit 4e4de2d

Please sign in to comment.