From mboxrd@z Thu Jan 1 00:00:00 1970 From: Wanrong Lin 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 Message-ID: References: <51338C37.9020604@gmail.com> <87li8qfrrv.fsf@bzg.ath.cx> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="------------55FA9ADEA9BAF0DF47650D39" Return-path: Received: from eggs.gnu.org ([209.51.188.92]:59631) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h8mz1-0004o5-5H for emacs-orgmode@gnu.org; Tue, 26 Mar 2019 10:23:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h8myz-0003Pi-KF for emacs-orgmode@gnu.org; Tue, 26 Mar 2019 10:23:19 -0400 Received: from mail-pf1-x436.google.com ([2607:f8b0:4864:20::436]:46916) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1h8myz-0003Mq-5f for emacs-orgmode@gnu.org; Tue, 26 Mar 2019 10:23:17 -0400 Received: by mail-pf1-x436.google.com with SMTP id 9so8128270pfj.13 for ; Tue, 26 Mar 2019 07:23:13 -0700 (PDT) Received: from [10.81.100.99] ([50.206.120.10]) by smtp.googlemail.com with ESMTPSA id 143sm154330pge.50.2019.03.26.07.23.10 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 26 Mar 2019 07:23:10 -0700 (PDT) In-Reply-To: <87li8qfrrv.fsf@bzg.ath.cx> Content-Language: en-US List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: emacs-orgmode@gnu.org This is a multi-part message in MIME format. --------------55FA9ADEA9BAF0DF47650D39 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit 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 ------------------------------------------------------------------------------- --------------55FA9ADEA9BAF0DF47650D39 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit

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

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

--------------55FA9ADEA9BAF0DF47650D39--