emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Capture with date prompt defaults to yesterday
@ 2019-05-19 13:36 Neil Jerram
  2019-05-28 20:20 ` Neil Jerram
  0 siblings, 1 reply; 7+ messages in thread
From: Neil Jerram @ 2019-05-19 13:36 UTC (permalink / raw)
  To: Org Mode List

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

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

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

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2019-06-11  8:53 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-05-19 13:36 Capture with date prompt defaults to yesterday Neil Jerram
2019-05-28 20:20 ` Neil Jerram
2019-06-07 12:33   ` Neil Jerram
2019-06-07 21:31     ` Nicolas Goaziou
2019-06-09 10:40       ` Neil Jerram
2019-06-10  9:22         ` Nicolas Goaziou
2019-06-11  8:53           ` Neil Jerram

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).