From 23bc29a6ee4f3b78b20168a8659271b44cc60180 Mon Sep 17 00:00:00 2001 From: Tobias Brox Date: Sun, 7 Jun 2020 11:53:40 +0200 Subject: yet another bugfix --- calendar-cli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/calendar-cli.py b/calendar-cli.py index 7257beb..37b6a32 100755 --- a/calendar-cli.py +++ b/calendar-cli.py @@ -502,7 +502,7 @@ def calendar_agenda(caldav_conn, args): dtstart = datetime(dtstart.year, dtstart.month, dtstart.day) else: if not dtstart.tzinfo: - tzinfo.localize(dtstart) + dtstart = tzinfo.localize(dtstart) ## convert into timezone given in args: dtstart = dtstart.astimezone(_tz(args.timezone)) -- cgit v1.2.3