summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias Brox <tobias@redpill-linpro.com>2020-06-07 11:53:40 +0200
committerTobias Brox <tobias@redpill-linpro.com>2020-06-07 11:53:40 +0200
commit23bc29a6ee4f3b78b20168a8659271b44cc60180 (patch)
tree1608435ee103c2a70e2a6a7e95ed7e9bf3b954d5
parent1727c49082bbdf898b0dc5ea309b847e249bb94c (diff)
downloadcalendar-cli-23bc29a6ee4f3b78b20168a8659271b44cc60180.zip
yet another bugfix
-rwxr-xr-xcalendar-cli.py2
1 files changed, 1 insertions, 1 deletions
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))