Dear friends,
I have a question regarding the end time of an appointment
in icalendar export.
org 9.7.11
emaca 31.0.50
The follwing org
* Stadtpark Planetarium
<2025-03-30 10:00>
Treffpunkt: Bahnhof, Bahnhofstr. 13
Typ: Tagestour
Schwierigkeit: **
Länge: 65
Einkehr: ja
will be exported to
BEGIN:VCALENDAR
VERSION:2.0
X-WR-CALNAME:test
PRODID:-//steuer//Emacs with Org mode//EN
X-WR-TIMEZONE:CEST
X-WR-CALDESC:
CALSCALE:GREGORIAN
BEGIN:VEVENT
DTSTAMP:20250515T175803Z
UID:TS1-8cf2d76c-17c2-4a87-9bb8-972a3778c654
DTSTART:20250330T100000
DTEND:20250330T120000
SUMMARY:Stadtpark Planetarium
CATEGORIES:test
END:VEVENT
END:VCALENDAR
As can be seen, there is no end time in the org file, but
there is one in the ics file.
I do not have set an org-agenda-default-appointment-duration.
The two hour offset seems to stem from function
org-icalendar-convert-timestamp and there the lines
---- ..
(h (cond ((not with-time-p) 0)
((not end) hour-start)
((or (not equal-bounds-p)
org-agenda-default-appointment-duration)
hour-end)
(t (+ hour-end 2))))
----
My question: Is it possible to export to ics without an end time?
If not, how can a different default lengths for icalendar export only
be defined?
I guess the two hour setting is kind of arbitrary. Couldn't that be a
variable, if the icalendar standard requires an end time?
Any help appreciated.
Detlef
--
"Wozu leben wir, wenn nicht dazu, uns gegenseitig das Leben
einfacher zu machen. (George Eliot)"