mirror of https://github.com/borgbackup/borg.git
Do datetime to date conversion using the local time zone
This commit is contained in:
parent
5443441e3f
commit
66885c3986
|
@ -233,7 +233,7 @@ class Archiver(object):
|
||||||
t0 = date.today() + timedelta(days=1) # Tomorrow
|
t0 = date.today() + timedelta(days=1) # Tomorrow
|
||||||
daily = weekly = monthly = 0
|
daily = weekly = monthly = 0
|
||||||
for archive in archives:
|
for archive in archives:
|
||||||
t = archive.ts.date()
|
t = to_localtime(archive.ts).date()
|
||||||
if daily < args.daily and t < t0:
|
if daily < args.daily and t < t0:
|
||||||
daily += 1
|
daily += 1
|
||||||
self.print_verbose('Archive "%s" is daily archive number %d',
|
self.print_verbose('Archive "%s" is daily archive number %d',
|
||||||
|
|
Loading…
Reference in New Issue