emacs-orgmode
[Top][All Lists]
Advanced

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

[O] Capture with date prompt defaults to yesterday


From: Neil Jerram
Subject: [O] Capture with date prompt defaults to yesterday
Date: Sun, 19 May 2019 14:36:06 +0100

I have a capture template like this:

 '(org-capture-templates
   (quote
    (("a" "" entry
      (file "~/org/capture.org")
      "** TODO %?
SCHEDULED: %^t"))))

When I use that, the date prompt defaults to yesterday, whereas I'd expect it to default to today.

I believe this is because I also have (setq org-extend-today-until 2).  What happens is that (org-get-cursor-date) gets the right _date_, then converts that to a time at midnight, i.e. <date> 00:00.  And then, I presume, some following code thinks that means <date>-1, because of my org-extend-today-until setting.

Thoughts?

Many thanks,
   Neil


reply via email to

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