emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [O] Capture with date prompt defaults to yesterday


From: Neil Jerram
Subject: Re: [O] Capture with date prompt defaults to yesterday
Date: Tue, 28 May 2019 21:20:45 +0100

On Sun, 19 May 2019 at 14:36, Neil Jerram <address@hidden> wrote:
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

Well I think it's a bug and propose the attached fix.  Please let me know what you think.

     Neil
 

Attachment: 0001-Make-capture-s-idea-of-the-current-day-more-intuitiv.patch
Description: Text Data


reply via email to

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