emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Eliza Velasquez <eliza@eliza.sh>
To: emacs-orgmode@gnu.org
Subject: [BUG] icalendar export fails with SCHEDULED/DEADLINE entries [9.5.2 (9.5.2-gbc8c3e @ /home/eliza/.emacs.d/straight/build/org/)]
Date: Tue, 15 Feb 2022 07:44:29 +0000	[thread overview]
Message-ID: <87fsokefqf.fsf@eliza.sh> (raw)

Hello,

It seems like `org-icalendar-export-to-ics' fails to consider the
SCHEDULED and DEADLINE properties. Consider the following org file
`foo.org':

* foo
SCHEDULED: <2022-02-15 Tue>

When invoking `org-icalendar-export-to-ics', we get the following
`foo.ics' file.

BEGIN:VCALENDAR
VERSION:2.0
X-WR-CALNAME:test
PRODID:-//Eliza Velasquez//Emacs with Org mode//EN
X-WR-TIMEZONE:PST
X-WR-CALDESC:
CALSCALE:GREGORIAN
END:VCALENDAR

As you can see, there is no entry for `foo'. Changing the file so that
the timestamp is in the body rather than the SCHEDULED property (though
I'm not sure "property" is the correct term here, given that it's not a
PROPERTY)...

* foo
<2022-02-15 Tue>

...exports as expected.

BEGIN:VCALENDAR
VERSION:2.0
X-WR-CALNAME:test
PRODID:-//Eliza Velasquez//Emacs with Org mode//EN
X-WR-TIMEZONE:PST
X-WR-CALDESC:
CALSCALE:GREGORIAN
BEGIN:VEVENT
DTSTAMP:20220215T074144Z
UID:TS1-3d9795cd-8430-49dd-97d7-f1fcc10d814d
DTSTART;VALUE=DATE:20220215
DTEND;VALUE=DATE:20220216
SUMMARY:foo
DESCRIPTION:<2022-02-15 Tue>
CATEGORIES:test
END:VEVENT
END:VCALENDAR

I noticed this when trying to use org-caldav, and it seems some others
have run into this issue as well. At least, I'm pretty sure the two bugs
are caused by the same issue.
<https://github.com/dengste/org-caldav/issues/212>

Emacs  : GNU Emacs 29.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.30, cairo version 1.16.0)
Package: Org mode version 9.5.2 (9.5.2-gbc8c3e @ /home/eliza/.emacs.d/straight/build/org/)
--
Eliza



             reply	other threads:[~2022-02-15  7:47 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-02-15  7:44 Eliza Velasquez [this message]
2022-02-15  8:43 ` [BUG] icalendar export fails with SCHEDULED/DEADLINE entries [9.5.2 (9.5.2-gbc8c3e @ /home/eliza/.emacs.d/straight/build/org/)] Eric S Fraga

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87fsokefqf.fsf@eliza.sh \
    --to=eliza@eliza.sh \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).