From mboxrd@z Thu Jan 1 00:00:00 1970 From: agzam.ibragimov@gmail.com Subject: Re: Bug: org-read-date ignores hours? Date: Thu, 24 Oct 2019 10:45:39 -0700 Message-ID: References: <84h83yr0wq.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000b18b300595ab9ac9" Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:43073) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iNhBL-0005gI-M2 for emacs-orgmode@gnu.org; Thu, 24 Oct 2019 13:45:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iNhBK-00032g-I0 for emacs-orgmode@gnu.org; Thu, 24 Oct 2019 13:45:55 -0400 Received: from mail-qk1-x72b.google.com ([2607:f8b0:4864:20::72b]:40748) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iNhBK-00031F-Da for emacs-orgmode@gnu.org; Thu, 24 Oct 2019 13:45:54 -0400 Received: by mail-qk1-x72b.google.com with SMTP id y81so20326992qkb.7 for ; Thu, 24 Oct 2019 10:45:51 -0700 (PDT) In-Reply-To: <84h83yr0wq.fsf@gmail.com> 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: Marco Wahl Cc: org-mode-email --000000000000b18b300595ab9ac9 Content-Type: text/plain; charset="UTF-8" While fooling around with capture templates, I have also noticed this: (progn (setq org-popup-calendar-for-date-prompt t) (read-date t))) When prompted, if you type something like "13:00" - it returns correct, expected datetime. But, if you do: (progn (setq org-popup-calendar-for-date-prompt nil) (read-date t))) And again, type some time value in the prompt - it returns date with no time. This seems to be a bug. On Thu, Oct 24, 2019 at 1:41 AM Marco Wahl wrote: > Hi Ag, > > > When I use (org-read-date t) and type something like "+2m" it works as > expected, but for > > some reason if I type something like "+2h" it returns datetime with no > > changes. Expected - two hours in the future. Am I missing something? > > AFAICS your expectation is not implemented. See function > org-read-date-get-relative. > > +1 for someone trying to implement this idea. > > > HTH, > -- > Marco > -- Regards, Ag. --000000000000b18b300595ab9ac9 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
While fooling around with capture templates, I have also n= oticed this:

(progn
=C2=A0 (setq org-popup-calendar-for-date-prom= pt t)
=C2=A0 (read-date t)))

When prompted, if you type some= thing like "13:00" - it returns correct, expected datetime.
But, if you do:

(progn
=C2=A0 (setq org-popup-calendar-for-date= -prompt nil)
=C2=A0 (read-date t)))

And again, type some time val= ue in the prompt - it returns date with no time. This seems to be a bug.

On Thu, Oct 24, 2019 at 1:41 AM Marco Wahl <marcowahlsoft@gmail.com> wrote:
Hi Ag,

> When I use (org-read-date t) and type something like "+2m" i= t works as expected, but for
> some reason if I type something like "+2h" it returns dateti= me with no
> changes. Expected - two hours in the future. Am I missing something?
AFAICS your expectation is not implemented.=C2=A0 See function
org-read-date-get-relative.

+1 for someone trying to implement this idea.


HTH,
--
Marco


--
Regards,
Ag.
--000000000000b18b300595ab9ac9--