From mboxrd@z Thu Jan 1 00:00:00 1970 From: Neil Jerram Subject: Capture with date prompt defaults to yesterday Date: Sun, 19 May 2019 14:36:06 +0100 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="00000000000048c2d705893db314" Return-path: Received: from eggs.gnu.org ([209.51.188.92]:50829) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hSLzB-00078c-5w for emacs-orgmode@gnu.org; Sun, 19 May 2019 09:36:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hSLzA-0004xW-4F for emacs-orgmode@gnu.org; Sun, 19 May 2019 09:36:21 -0400 Received: from mail-lj1-x22e.google.com ([2a00:1450:4864:20::22e]:35063) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hSLz9-0004xF-Sl for emacs-orgmode@gnu.org; Sun, 19 May 2019 09:36:20 -0400 Received: by mail-lj1-x22e.google.com with SMTP id h11so8715542ljb.2 for ; Sun, 19 May 2019 06:36:19 -0700 (PDT) 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: Org Mode List --00000000000048c2d705893db314 Content-Type: text/plain; charset="UTF-8" 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. 00:00. And then, I presume, some following code thinks that means -1, because of my org-extend-today-until setting. Thoughts? Many thanks, Neil --00000000000048c2d705893db314 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I have a capture te= mplate like this:

=C2=A0'(org-capture-tem= plates
=C2=A0 =C2=A0(quote
=C2=A0 =C2=A0 (("a"= ; "" entry
=C2=A0 =C2=A0 =C2=A0 (file "~/org/capture.org")
=C2=A0 =C2=A0 = =C2=A0 "** TODO %?
SCHEDULED: %^t"))))
=
When I use that, the date prompt defaults to yesterday, wher= eas I'd expect it to default to today.

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

Thoughts?
=

Many thanks,
=C2=A0 =C2=A0Neil

=
--00000000000048c2d705893db314--