Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions khal/controllers.py
Original file line number Diff line number Diff line change
Expand Up @@ -580,6 +580,9 @@ def edit_event(event, collection, locale, allow_quit=False, width=80):
value = prompt("datetime range", default=current)
try:
start, end, allday = parse_datetime.guessrangefstr(ansi.sub("", value), locale)
if not allday:
start = locale["local_timezone"].localize(start)
end = locale["local_timezone"].localize(end)
event.update_start_end(start, end)
edited = True
except Exception:
Expand Down
Loading