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

Previous Next

Package: org-mode;

Reported by: Gary Fredericks <fredericksgary <at> gmail.com>

Date: Sat, 15 Jun 2019 18:54:02 UTC

Severity: normal

Done: Bastien <bzg <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 36228 in the body.
You can then email your comments to 36228 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#36228; Package emacs. (Sat, 15 Jun 2019 18:54:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Gary Fredericks <fredericksgary <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Sat, 15 Jun 2019 18:54:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Gary Fredericks <fredericksgary <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: org agenda tags-todo time-zone bug/inconsistency
Date: Sat, 15 Jun 2019 13:52:48 -0500
[Message part 1 (text/plain, inline)]
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
[Message part 2 (text/html, inline)]

bug reassigned from package 'emacs' to 'org-mode'. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Sat, 15 Jun 2019 19:16:01 GMT) Full text and rfc822 format available.

Reply sent to Bastien <bzg <at> gnu.org>:
You have taken responsibility. (Sun, 24 May 2020 08:52:02 GMT) Full text and rfc822 format available.

Notification sent to Gary Fredericks <fredericksgary <at> gmail.com>:
bug acknowledged by developer. (Sun, 24 May 2020 08:52:02 GMT) Full text and rfc822 format available.

Message #12 received at 36228-done <at> debbugs.gnu.org (full text, mbox):

From: Bastien <bzg <at> gnu.org>
To: Gary Fredericks <fredericksgary <at> gmail.com>
Cc: 36228-done <at> debbugs.gnu.org
Subject: Re: bug#36228: org agenda tags-todo time-zone bug/inconsistency
Date: Sun, 24 May 2020 10:51:15 +0200
Hi Gary,

Gary Fredericks <fredericksgary <at> gmail.com> writes:

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

I tried to reproduce this bug with latest Org mode version 9.3.6 and
GNU Emacs 28.0.50 and I could not reproduce it.

I am closing this bug report -- please feel free to reopen it if you
still hit this bug.

Thanks,

-- 
 Bastien




Information forwarded to emacs-orgmode <at> gnu.org:
bug#36228; Package org-mode. (Sun, 24 May 2020 13:18:01 GMT) Full text and rfc822 format available.

Message #15 received at 36228 <at> debbugs.gnu.org (full text, mbox):

From: Gary Fredericks <fredericksgary <at> gmail.com>
To: 36228 <at> debbugs.gnu.org
Subject: Re: bug#36228: closed (Re: bug#36228: org agenda tags-todo time-zone
 bug/inconsistency)
Date: Sun, 24 May 2020 08:16:45 -0500
[Message part 1 (text/plain, inline)]
I agree, I can no longer reproduce it, even though we're in the same phase
of daylight savings time as when I originally reported it.

Thanks!

Gary Fredericks
[Message part 2 (text/html, inline)]

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Mon, 22 Jun 2020 11:24:06 GMT) Full text and rfc822 format available.

This bug report was last modified 4 years and 363 days ago.

Previous Next


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