From 66885c3986cd7bdf4ceba88094fbd9223ce15d74 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20Borgstr=C3=B6m?= Date: Sat, 6 Aug 2011 23:37:44 +0200 Subject: [PATCH] Do datetime to date conversion using the local time zone --- darc/archiver.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/darc/archiver.py b/darc/archiver.py index 2c43b8215..4e8faf56e 100644 --- a/darc/archiver.py +++ b/darc/archiver.py @@ -233,7 +233,7 @@ class Archiver(object): t0 = date.today() + timedelta(days=1) # Tomorrow daily = weekly = monthly = 0 for archive in archives: - t = archive.ts.date() + t = to_localtime(archive.ts).date() if daily < args.daily and t < t0: daily += 1 self.print_verbose('Archive "%s" is daily archive number %d',