GNU bug report logs - #36228
org agenda tags-todo time-zone bug/inconsistency

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: org-mode; Reported by: Gary Fredericks <fredericksgary@HIDDEN>; dated Sat, 15 Jun 2019 18:54:02 UTC; Maintainer for org-mode is emacs-orgmode@HIDDEN.
bug reassigned from package 'emacs' to 'org-mode'. Request was from Glenn Morris <rgm@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 15 Jun 2019 18:53:07 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Jun 15 14:53:07 2019
Received: from localhost ([127.0.0.1]:39196 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1hcDnW-0000LP-V3
	for submit <at> debbugs.gnu.org; Sat, 15 Jun 2019 14:53:07 -0400
Received: from lists.gnu.org ([209.51.188.17]:37612)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <fredericksgary@HIDDEN>) id 1hcDnV-0000LI-Am
 for submit <at> debbugs.gnu.org; Sat, 15 Jun 2019 14:53:06 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:47707)
 by lists.gnu.org with esmtp (Exim 4.86_2)
 (envelope-from <fredericksgary@HIDDEN>) id 1hcDnT-0000dg-Rn
 for bug-gnu-emacs@HIDDEN; Sat, 15 Jun 2019 14:53:05 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM,
 HTML_MESSAGE,URIBL_BLOCKED autolearn=disabled version=3.3.2
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <fredericksgary@HIDDEN>) id 1hcDnS-0001zO-Dq
 for bug-gnu-emacs@HIDDEN; Sat, 15 Jun 2019 14:53:03 -0400
Received: from mail-io1-xd31.google.com ([2607:f8b0:4864:20::d31]:37550)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16)
 (Exim 4.71) (envelope-from <fredericksgary@HIDDEN>)
 id 1hcDnS-0001rR-5F
 for bug-gnu-emacs@HIDDEN; Sat, 15 Jun 2019 14:53:02 -0400
Received: by mail-io1-xd31.google.com with SMTP id e5so12993292iok.4
 for <bug-gnu-emacs@HIDDEN>; Sat, 15 Jun 2019 11:53:01 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=mime-version:from:date:message-id:subject:to;
 bh=wlwzBGTQAiAPunlxmJYh4WQBkyxUZwfGOK1v5VNg3Ys=;
 b=b2glQPXo0AEcu0BYRN0vvU0+YtU2enbamIiQLs7Wun+IiI4ujzXinklzfOJOeS2yGn
 lEZ+V2ofOPnez+LiC+SwIsgLsC6Q3deuDukUtcdL8ANJhbHgc801NqcqhGNjiC/3o1Vp
 xBrA2QPVh/QjQD/vcFRLoccP8qn0ndi0W6+MMuvvgXOlLtEtOUAmbfV+X2fN+k03Hp1u
 oleEF4tgkv/s3BwRsFVb8kwX3JadU/y78ILNVPimKDfsfzcyjqj8KUdFfhRnvpQ+n7BC
 GyVTNG8yH/NadbwBLEpjMZBMsE19j3ZypbV2a19gCqCGfGd0wQrMt1RAKJIOxC3w9IHl
 g9Rw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:mime-version:from:date:message-id:subject:to;
 bh=wlwzBGTQAiAPunlxmJYh4WQBkyxUZwfGOK1v5VNg3Ys=;
 b=O46OmgqAa09j1xGPsrWA4/Bkt33n7ceektGvzayi9saHVnuEQinJJgHAyGEx9fjwdQ
 ap5vn3olqfWsuZNxequefVopVkkES43xxeinpY4wBiwA2eZEBbt4KegZ817vlqWfeSV0
 nlhmIS8C/UKsfjSA6G3oM2V/YWIq/SgKBW7W12PKfcyYqrT0+hYX974SwW2NNQbSYWVZ
 lw9E9Xq8xGdo8iA6zovidvmkuRGxiLIWurZyfVNBSGMYqtiUXOW/pKIyKZp2bb/2Vl+M
 UtIHgxQELIHisBXwRDM6K1XGIkkypC4rtuoXN2UzYY019Gmt/JQQ48/d0Ew/jWQiFB4+
 zmNw==
X-Gm-Message-State: APjAAAXQkJHVqlWcdgI4IvYp13XhK0ZG1I0SoGUEMrVr4DRAKuMMuGEj
 Uv63lk6QgVyRdRN7PvFSl8o+ZI7EPmECq/S9bEyGrP2p
X-Google-Smtp-Source: APXvYqza9OA7x5SmTKEiIvPc0Jm91if2YztZtGIQAo/zZJ/dsiUral6fKR3bKNd+Z/qUlufofXWYnSNvecnmF3rO6bw=
X-Received: by 2002:a02:aa0d:: with SMTP id r13mr69353093jam.129.1560624780170; 
 Sat, 15 Jun 2019 11:53:00 -0700 (PDT)
MIME-Version: 1.0
From: Gary Fredericks <fredericksgary@HIDDEN>
Date: Sat, 15 Jun 2019 13:52:48 -0500
Message-ID: <CAMMdeLig_EXqXBCFPJbh7teaa4pGe+bp5V4PSmDyGATPtp5HZQ@HIDDEN>
Subject: org agenda tags-todo time-zone bug/inconsistency
To: bug-gnu-emacs@HIDDEN
Content-Type: multipart/alternative; boundary="000000000000a65a4e058b614536"
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
 recognized.
X-Received-From: 2607:f8b0:4864:20::d31
X-Spam-Score: -1.3 (-)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.3 (--)

--000000000000a65a4e058b614536
Content-Type: text/plain; charset="UTF-8"

I use a (tags-todo "SCHEDULED<\"<now>\"" ()) portion of my org agenda to
suppress scheduled agenda items until their scheduled timestamp has passed.
In more recent commits of emacs I've found this to be an hour off (possibly
due to daylight savings time), in a way that's not just wrong but also
inconsistent with the time shown by the calendar agenda (so it's probably
not related to a more global timezone configuration).

Details:

   - I'm using ubuntu 18.04 and am building emacs myself
   - The failure begins with commit 988e37fa0f922b85271
   - I'm in Chicago, which is currently at -05:00, and during other times
   of the year is at -06:00 -- the tags-todo portion of the agenda is behaving
   as if the local time is -06:00, so daylight savings time smells related
   - I'm reproducing using emacs -q, with the minimal configuration given
   below

The punchline is this agenda, which should be evidently internally
inconsistent (both TODO items should appear up top, but only one of them
does; the "now" line of the calendar agenda is correct):

> Headlines with TAGS match: SCHEDULED<"<now>"
>   whatever:   TODO This one is scheduled for 12pm
>
>
=================================================================================================
> Week-agenda (W24):
> Monday     10 June 2019 W24
> Tuesday    11 June 2019
> Wednesday  12 June 2019
> Thursday   13 June 2019
> Friday     14 June 2019
> Saturday   15 June 2019
>                8:00...... ----------------
>               10:00...... ----------------
>   whatever:   12:00...... Scheduled:  TODO This one is scheduled for 12pm
>               12:00...... ----------------
>   whatever:   13:00...... Scheduled:  TODO This one is scheduled for 1pm
>               13:40...... now - - - - - - - - - - - - - - - - - - - - - -
- - -
>               14:00...... ----------------
>               16:00...... ----------------
>               18:00...... ----------------
>               20:00...... ----------------
> Sunday     16 June 2019

The org-file used for the above (which would need to be adjusted so that,
e.g., the times are the two most recent on-the-hour timestamps) is:

> * TODO This one is scheduled for 12pm
>   SCHEDULED: <2019-06-15 Sat 12:00>
> * TODO This one is scheduled for 1pm
>   SCHEDULED: <2019-06-15 Sat 13:00>

And the agenda configuration is:

> ;; To reproduce: open whatever.org and make sure that one entry is
> ;; within the last hour and another entry is an hour before that one
>
> ;; Then do C-c a n and notice that only one entry is shown in the
> ;; top section even though both should be
>
> (global-set-key "\C-ca" 'org-agenda)
> (setq-default org-agenda-files '("./whatever.org"))
>
> (setq org-agenda-custom-commands
>       `(("n" "Narrow"
>          ((tags-todo "SCHEDULED<\"<now>\"" ())
>  (agenda "" ())))))


Gary Fredericks

--000000000000a65a4e058b614536
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div>I use a (tags-todo &quot;SCHEDULED&lt;\&quot;&lt;now&=
gt;\&quot;&quot; ()) portion of my org agenda to suppress scheduled agenda =
items until their scheduled timestamp has passed. In more recent commits of=
 emacs I&#39;ve found this to be an hour off (possibly due to daylight savi=
ngs time), in a way that&#39;s not just wrong but also inconsistent with th=
e time shown by the calendar agenda (so it&#39;s probably not related to a =
more global timezone configuration).</div><div><br></div><div>Details:</div=
><div><ul><li>I&#39;m using ubuntu 18.04 and am building emacs myself</li><=
li>The failure begins with commit 988e37fa0f922b85271</li><li>I&#39;m in Ch=
icago, which is currently at -05:00, and during other times of the year is =
at -06:00 -- the tags-todo portion of the agenda is behaving as if the loca=
l time is -06:00, so daylight savings time smells related</li><li>I&#39;m r=
eproducing using emacs -q, with the minimal configuration given below<br></=
li></ul><div>The punchline is this agenda, which should be evidently intern=
ally inconsistent (both TODO items should appear up top, but only one of th=
em does; the &quot;now&quot; line of the calendar agenda is correct):</div>=
<div><br></div><div><span style=3D"font-family:courier new,monospace">&gt; =
Headlines with TAGS match: SCHEDULED&lt;&quot;&lt;now&gt;&quot;<br>&gt; =C2=
=A0 whatever: =C2=A0 TODO This one is scheduled for 12pm<br>&gt; <br>&gt; =
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D<br>&gt; =
Week-agenda (W24):<br>&gt; Monday =C2=A0 =C2=A0 10 June 2019 W24<br>&gt; Tu=
esday =C2=A0 =C2=A011 June 2019<br>&gt; Wednesday =C2=A012 June 2019<br>&gt=
; Thursday =C2=A0 13 June 2019<br>&gt; Friday =C2=A0 =C2=A0 14 June 2019<br=
>&gt; Saturday =C2=A0 15 June 2019<br>&gt; =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
=A0 =C2=A0 =C2=A0 =C2=A08:00...... ----------------<br>&gt; =C2=A0 =C2=A0 =
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 10:00...... ----------------<br>&gt; =C2=
=A0 whatever: =C2=A0 12:00...... Scheduled: =C2=A0TODO This one is schedule=
d for 12pm<br>&gt; =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 12:00..=
.... ----------------<br>&gt; =C2=A0 whatever: =C2=A0 13:00...... Scheduled=
: =C2=A0TODO This one is scheduled for 1pm<br>&gt; =C2=A0 =C2=A0 =C2=A0 =C2=
=A0 =C2=A0 =C2=A0 =C2=A0 13:40...... now - - - - - - - - - - - - - - - - - =
- - - - - - - -<br>&gt; =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 14=
:00...... ----------------<br>&gt; =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
=A0 =C2=A0 16:00...... ----------------<br>&gt; =C2=A0 =C2=A0 =C2=A0 =C2=A0=
 =C2=A0 =C2=A0 =C2=A0 18:00...... ----------------<br>&gt; =C2=A0 =C2=A0 =
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 20:00...... ----------------<br>&gt; Sun=
day =C2=A0 =C2=A0 16 June 2019</span></div><div><br></div><div>The org-file=
 used for the above (which would need to be adjusted so that, e.g., the tim=
es are the two most recent on-the-hour timestamps) is:</div><div><br></div>=
<div><span style=3D"font-family:courier new,monospace">&gt; * TODO This one=
 is scheduled for 12pm<br>&gt; =C2=A0 SCHEDULED: &lt;2019-06-15 Sat 12:00&g=
t;<br>&gt; * TODO This one is scheduled for 1pm<br>&gt; =C2=A0 SCHEDULED: &=
lt;2019-06-15 Sat 13:00&gt;</span></div><div><br></div><div>And the agenda =
configuration is:</div><div><br></div><div><span style=3D"font-family:couri=
er new,monospace">&gt; ;; To reproduce: open <a href=3D"http://whatever.org=
">whatever.org</a> and make sure that one entry is<br>&gt; ;; within the la=
st hour and another entry is an hour before that one<br>&gt; <br>&gt; ;; Th=
en do C-c a n and notice that only one entry is shown in the<br>&gt; ;; top=
 section even though both should be<br>&gt; <br>&gt; (global-set-key &quot;=
\C-ca&quot; &#39;org-agenda)<br>&gt; (setq-default org-agenda-files &#39;(&=
quot;./<a href=3D"http://whatever.org">whatever.org</a>&quot;))<br>&gt; <br=
>&gt; (setq org-agenda-custom-commands<br>&gt; =C2=A0 =C2=A0 =C2=A0 `((&quo=
t;n&quot; &quot;Narrow&quot;<br>&gt; =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0((ta=
gs-todo &quot;SCHEDULED&lt;\&quot;&lt;now&gt;\&quot;&quot; ())<br>&gt; 	 =
=C2=A0(agenda &quot;&quot; ())))))</span><br></div><div><br> </div></div><d=
iv><br></div><div><div dir=3D"ltr" class=3D"m_8747970144972660601gmail_sign=
ature" data-smartmail=3D"gmail_signature"><div dir=3D"ltr">Gary Fredericks<=
/div></div></div></div>

--000000000000a65a4e058b614536--




Acknowledgement sent to Gary Fredericks <fredericksgary@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#36228; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Sat, 15 Jun 2019 19:30:03 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.