emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Wanrong Lin <wrglin@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Bug: Entries with diary-sexps in "scheduled" not exported properly to calendar file (.ics file)
Date: Tue, 26 Mar 2019 10:23:08 -0400	[thread overview]
Message-ID: <becc0efa-9520-2b18-608b-5a63c87512cb@gmail.com> (raw)
In-Reply-To: <87li8qfrrv.fsf@bzg.ath.cx>

[-- Attachment #1: Type: text/plain, Size: 1332 bytes --]

Org-mode version 9.2.2, Emacs 26.1, Windows 10

To reproduce:

Create a file "Test.org", with only one entry:

----------------------------------------------------------------------------

* TODO Do this on the second Monday every month
   SCHEDULED: <%%(diary-float t 1 2) 19:00-20:30>
   :PROPERTIES:
   :ID:       5eb2262f-d7a4-4c10-8765-e1906a1cf276
   :END:

------------------------------------------------------------------------------

Run this in the buffer of this above file:

M-x org-icalendar-export-to-ics

Check the output file "Test.ics", and you will see something like below, 
which obviously is wrong (I highlighted the wrong part).

BTW: regular org-agenda still works correctly with this entry (the TODO 
shows up correct at the right date)

-------------------------------------------------------------------------------

BEGIN:VCALENDAR
VERSION:2.0
X-WR-CALNAME:Test
PRODID:-////Emacs with Org mode//EN
X-WR-TIMEZONE:America/New_York
X-WR-CALDESC:
CALSCALE:GREGORIAN
BEGIN:VTODO

UID:TODO-5eb2262f-d7a4-4c10-8765-e1906a1cf276

DTSTAMP:20190326T141906Z

*DTSTART:20190326T101900*

SUMMARY:Do this on the second Monday every month

CATEGORIES:Test

SEQUENCE:1

PRIORITY:13

STATUS:NEEDS-ACTION

END:VTODO
END:VCALENDAR

-------------------------------------------------------------------------------


[-- Attachment #2: Type: text/html, Size: 2021 bytes --]

  reply	other threads:[~2019-03-26 14:23 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-03-03 17:45 Bug: org-agenda-undo does not work on repeated tasks [7.9.3d (7.9.3d-dist @ /home/wlin/.emacs-lisp/org/lisp/)] Wanrong Lin
2013-04-10 12:38 ` Bastien
2019-03-26 14:23   ` Wanrong Lin [this message]
2019-03-26 18:21     ` Bug: Entries with diary-sexps in "scheduled" not exported properly to calendar file (.ics file) Thomas Plass
2019-03-26 19:20       ` Wanrong Lin
2019-03-26 21:01         ` Thomas Plass
2019-04-01 18:14           ` Wanrong Lin

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=becc0efa-9520-2b18-608b-5a63c87512cb@gmail.com \
    --to=wrglin@gmail.com \
    --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).