diff options
author | Tobias Brox <tobias@redpill-linpro.com> | 2020-06-06 21:08:20 +0200 |
---|---|---|
committer | Tobias Brox <tobias@redpill-linpro.com> | 2020-06-06 21:08:20 +0200 |
commit | c8fcb2e743274553274334e24cc8e508ec7c6be2 (patch) | |
tree | e95648150512ca7edcf82ade0172645c2c5f5d28 /calendar-cli.py | |
parent | 2f1fdbb13175535e4b52f75616cbaf11a81181d3 (diff) | |
download | calendar-cli-c8fcb2e743274553274334e24cc8e508ec7c6be2.zip |
bugfix for https://github.com/tobixen/calendar-cli/issues/11 - timezone was not honored when doing an agenda date search
Diffstat (limited to 'calendar-cli.py')
-rwxr-xr-x | calendar-cli.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/calendar-cli.py b/calendar-cli.py index be4a609..3bedae1 100755 --- a/calendar-cli.py +++ b/calendar-cli.py @@ -468,10 +468,12 @@ def calendar_agenda(caldav_conn, args): if args.from_time: dtstart = dateutil.parser.parse(args.from_time) + dtstart = _tz(args.timezone).localize(dtstart) else: dtstart = _now() if args.to_time: dtend = dateutil.parser.parse(args.to_time) + dtend = _tz(args.timezone).localize(dtend) elif args.agenda_mins: dtend = dtstart + timedelta(minutes=args.agenda_mins) elif args.agenda_days: |