emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] [bug] org-agenda-write does not handle date stamps without day o


From: Nick Dokos
Subject: Re: [O] [bug] org-agenda-write does not handle date stamps without day of week
Date: Tue, 20 Mar 2012 09:39:44 -0400

Karl Voit <address@hidden> wrote:

> * Carsten Dominik <address@hidden> wrote:
> > I have just pushed the new version of this regexp into master.
> 
> Very cool!
> 
> > Karl, let me know if it fixes the issues you where having
> > with writing agendas.
> 
> My agenda looks fine. But generating the ics file still results in
> events without the time information:
> 
> ,----[ my function generating the ics ]
> | (defun vk-export-agenda()
> |   "Exports monthly Org-mode agenda to agenda.ics file"
> |   (interactive)
> |   (org-agenda-list nil nil 60)
> |   (org-agenda-write "~/share/all/org-mode/agenda.ics")
> | )
> `----
> 
> with:
> 
> ,----[ example events ]
> | ** <2012-03-20 8:00-9:30> Test
> | :PROPERTIES:
> | :CREATED: [2012-03-20 Tue 10:38]
> | :END:
> |
> | ** <2012-03-20 8:12-13:12> Test
> | :PROPERTIES:
> | :CREATED: [2012-03-20 Tue 10:40]
> | :END:
> `----
> 
> results in:
> 
> ,----[ ics result ]
> | address@hidden ~all/org-mode (git)-[master] % grep -C 2 Test agenda.ics
> | DTSTART;VALUE=DATE:20120320
> | DTEND;VALUE=DATE:20120320
> | SUMMARY: Test
> | CATEGORIES:misc
> | END:VEVENT
> | --
> | DTSTART;VALUE=DATE:20120320
> | DTEND;VALUE=DATE:20120320
> | SUMMARY: Test
> | CATEGORIES:misc
> | END:VEVENT
> | address@hidden ~all/org-mode (git)-[master] %
> `----
> 

I get

BEGIN:VEVENT
UID: TS-11c60341-06a6-4b6f-bb22-2ccd739bbdc8
DTSTART:20120320T080000
DTEND:20120320T093000
SUMMARY: Test
CATEGORIES:foo
END:VEVENT

BEGIN:VEVENT
UID: TS-dc99f34e-e24a-4ecc-add5-fa67649b005e
DTSTART:20120320T081200
DTEND:20120320T131200
SUMMARY: Test
CATEGORIES:foo
END:VEVENT

which looks correct to me.

Check that you picked up Carsten's fix (commit ):

      git show 7d84b300f4cba8b726662113d4ce4ff40a76c5b5

If you did M-x org-reload RET only, then that's probably the reason:
check to see if the value of org-ts-regexp0 has been updated; in my case
it hadn't and I ended up doing M-x load-file RET /path/to/org.el RET.
Alternatively, restart emacs.

Nick




reply via email to

[Prev in Thread] Current Thread [Next in Thread]