From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Bug: org-capture files wrong date in capture template [9.1.7 (9.1.7-elpaplus @ /Users/rmirelan/.emacs.d/elpa/org-plus-contrib-20180226/)] Date: Tue, 03 Apr 2018 23:00:04 +0200 Message-ID: <87muykvwdn.fsf@nicolasgoaziou.fr> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:55360) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f4v3c-00046r-Ua for emacs-orgmode@gnu.org; Sat, 07 Apr 2018 17:07:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f4v3Y-00059p-UQ for emacs-orgmode@gnu.org; Sat, 07 Apr 2018 17:07:32 -0400 Received: from relay9-d.mail.gandi.net ([217.70.183.199]:35711) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1f4v3Y-00058M-Nr for emacs-orgmode@gnu.org; Sat, 07 Apr 2018 17:07:28 -0400 In-Reply-To: (Robert Irelan's message of "Tue, 03 Apr 2018 19:09:41 +0000") 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: Robert Irelan Cc: Org-mode Hello, Robert Irelan writes: > I have an org-capture template of type file+olp+datetree and :time-prompt > t. Whenever I invoke it, it prompts me for a date. If I enter the current > date at the prompt, `%u` correctly formats the captured entry with today's > date. However, if I enter any other date, whether in the future or past, > `%u` is formatted with the date 1 day before the date I enter at the > prompt. So, for example, if I enter the date "2018-04-01" at the prompt, > `%u` is formatted as "[2018-03-31 Sat]". I can consistently reproduce this > with the following template, and also with version `Org mode version 9.1.9 > (9.1.9-3-gb1a639-elpaplus @ > /Users/rmirelan/.emacs.d/elpa/org-plus-contrib-20180402/)`. > > ``` > ("D" "Daily Log" entry (file+olp+datetree (lambda > nil (concat org-directory "/daily-log.org"))) > "\n* %u Daily log\n:PROPERTIES:\n:Effort: > 0:05\n:END:\n*Summary*:%?\n\n*Problem*:\n\n*Insight*:\n\n*Tomorrow*:\n\n" > :time-prompt t :tree-type week :clock-in t :clock-resume t) > ``` I cannot reproduce it with my configuration and the template above. However... > org-extend-today-until 4 ... this could be related to the variable above. Regards, -- Nicolas Goaziou