GNU bug report logs - #24791
org-todo-yesterday behaves like plain org-todo (incorrect timestamp)

Previous Next

Package: org-mode;

Reported by: Jan Böhm <schmuufanpost <at> gmx.de>

Date: Tue, 25 Oct 2016 15:38:01 UTC

Severity: normal

Done: Nicolas Goaziou <mail <at> nicolasgoaziou.fr>

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 24791 in the body.
You can then email your comments to 24791 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#24791; Package emacs. (Tue, 25 Oct 2016 15:38:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Jan Böhm <schmuufanpost <at> gmx.de>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Tue, 25 Oct 2016 15:38:02 GMT) Full text and rfc822 format available.

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

From: Jan Böhm <schmuufanpost <at> gmx.de>
To: bug-gnu-emacs <at> gnu.org
Subject: org-todo-yesterday behaves like plain org-todo (incorrect timestamp)
Date: Tue, 25 Oct 2016 12:21:29 +0200
From: jan <schmuufanpost <at> gmx.de>
To: bug-gnu-emacs <at> gnu.org
Subject: 26.0.50; functions org-todo-yesterday and 
org-agenda-todo-yesterday show no effect
--text follows this line--


Symptoms: both org-todo-yesterday and org-agenda-todo-yesterday behave 
just like normally setting todo state to "DONE" with org-todo. 
Specifically, the timestamp
added in the log takes the current time instead of 23:59 of the previous
day, as would be expected.

Replicate behaviour:
start emacs -Q
set org-log-done to "time"
visit new file and switch to org mode
create TODO headline and set TODO state to "DONE" by calling 
"org-todo-yesterday"
⇒ todo state is set to DONE correctly, but the timestamp inserted in the 
log drawer is the current time.




In GNU Emacs 26.0.50.2 (x86_64-pc-linux-gnu, GTK+ Version 3.18.9)
  of 2016-10-22 built on lgw01-56
Windowing system distributor 'The X.Org Foundation', version 11.0.11803000
System Description:	Ubuntu 16.04.1 LTS

Recent messages:
Making completion list...
Invalid face reference: nil [57 times]
user-error: Value ‘t’ does not match type choice of org-log-doneInvalid 
face reference: nil
Invalid face reference: nil [32 times]
No library org.el in search path
Type "q" in help window to restore its previous buffer, C-M-v to scroll 
help.
Making completion list...
Quit
You can run the command ‘org-todo-yesterday’ with M-x o-t-y RET
Auto-saving...done

Configured using:
  'configure --build=x86_64-linux-gnu --prefix=/usr
  '--includedir=${prefix}/include' '--mandir=${prefix}/share/man'
  '--infodir=${prefix}/share/info' --sysconfdir=/etc --localstatedir=/var
  --disable-silent-rules '--libdir=${prefix}/lib/x86_64-linux-gnu'
  '--libexecdir=${prefix}/lib/x86_64-linux-gnu' --disable-maintainer-mode
  --disable-dependency-tracking --prefix=/usr --sharedstatedir=/var/lib
  --program-suffix=-snapshot --with-modules=yes --with-x=yes
  --with-x-toolkit=gtk3 --with-xwidgets=yes 'CFLAGS=-g -O2
  -fstack-protector-strong -Wformat -Werror=format-security'
  'CPPFLAGS=-Wdate-time -D_FORTIFY_SOURCE=2'
  'LDFLAGS=-Wl,-Bsymbolic-functions -Wl,-z,relro''

Configured features:
XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GCONF GSETTINGS
NOTIFY LIBSELINUX GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB
TOOLKIT_SCROLL_BARS GTK3 X11 MODULES XWIDGETS LIBSYSTEMD

Important settings:
   value of $LC_MONETARY: de_DE.UTF-8
   value of $LC_NUMERIC: de_DE.UTF-8
   value of $LC_TIME: de_DE.UTF-8
   value of $LANG: de_DE.UTF-8
   locale-coding-system: utf-8-unix

Major mode: Org

Minor modes in effect:
   tooltip-mode: t
   global-eldoc-mode: t
   electric-indent-mode: t
   mouse-wheel-mode: t
   tool-bar-mode: t
   menu-bar-mode: t
   file-name-shadow-mode: t
   global-font-lock-mode: t
   font-lock-mode: t
   blink-cursor-mode: t
   auto-composition-mode: t
   auto-encryption-mode: t
   auto-compression-mode: t
   line-number-mode: t
   transient-mark-mode: t

Load-path shadows:
None found.

Features:
(shadow sort mail-extr emacsbug message puny rfc822 mml mml-sec
password-cache epa derived epg epg-config mm-decode mm-bodies mm-encode
mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail org-table
ob-ditaa ob-plantuml org-archive org-clock org-colview org-crypt
org-habit org-indent help-fns radix-tree thingatpt dabbrev tabify
image-file diary-lib diary-loaddefs cus-edit cus-start cus-load wid-edit
org-element org-rmail org-mhe org-irc org-info org-gnus gnus-util rmail
rmail-loaddefs rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils
org-docview doc-view subr-x jka-compr image-mode dired dired-loaddefs
org-bibtex bibtex org-bbdb org-w3m org-capture cal-iso org-agenda org
org-macro org-footnote org-pcomplete pcomplete org-list org-faces
org-entities noutline outline easy-mmode org-version ob-emacs-lisp ob
ob-tangle ob-ref ob-lob ob-table ob-exp org-src ob-keys ob-comint comint
ansi-color ring ob-core ob-eval org-compat org-macs org-loaddefs
format-spec find-func seq byte-opt gv bytecomp byte-compile cl-extra
help-mode cconv cl-loaddefs pcase cl-lib cal-menu easymenu calendar
cal-loaddefs time-date mule-util tooltip eldoc electric uniquify
ediff-hook vc-hooks lisp-float-type mwheel term/x-win x-win
term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe
tabulated-list newcomment elisp-mode lisp-mode prog-mode register page
menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock
syntax facemenu font-core term/tty-colors frame cl-generic cham georgian
utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean
japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european
ethiopic indian cyrillic chinese charscript case-table epa-hook
jka-cmpr-hook help simple abbrev obarray minibuffer cl-preloaded nadvice
loaddefs button faces cus-face macroexp files text-properties overlay
sha1 md5 base64 format env code-pages mule custom widget
hashtable-print-readable backquote dbusbind inotify dynamic-setting
system-font-setting font-render-setting xwidget-internal move-toolbar
gtk x-toolkit x multi-tty make-network-process emacs)

Memory information:
((conses 16 296455 26438)
  (symbols 48 31017 0)
  (miscs 40 1928 1990)
  (strings 32 53612 7768)
  (string-bytes 1 1695236)
  (vectors 16 23259)
  (vector-slots 8 563485 7448)
  (floats 8 283 395)
  (intervals 56 2689 205)
  (buffers 976 18)
  (heap 1024 43418 1243))




bug reassigned from package 'emacs' to 'org-mode'. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Tue, 25 Oct 2016 15:49:02 GMT) Full text and rfc822 format available.

Information forwarded to emacs-orgmode <at> gnu.org:
bug#24791; Package org-mode. (Fri, 01 Dec 2017 21:54:02 GMT) Full text and rfc822 format available.

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

From: Nicolas Goaziou <mail <at> nicolasgoaziou.fr>
To: Jan Böhm <schmuufanpost <at> gmx.de>
Cc: 24791 <at> debbugs.gnu.org
Subject: Re: bug#24791: org-todo-yesterday behaves like plain org-todo
 (incorrect timestamp)
Date: Fri, 01 Dec 2017 22:53:43 +0100
Hello,

Jan Böhm <schmuufanpost <at> gmx.de> writes:

> Symptoms: both org-todo-yesterday and org-agenda-todo-yesterday behave
> just like normally setting todo state to "DONE" with org-todo.
> Specifically, the timestamp
> added in the log takes the current time instead of 23:59 of the previous
> day, as would be expected.
>
> Replicate behaviour:
> start emacs -Q
> set org-log-done to "time"
> visit new file and switch to org mode
> create TODO headline and set TODO state to "DONE" by calling
> "org-todo-yesterday"
> ⇒ todo state is set to DONE correctly, but the timestamp inserted in
> the log drawer is the current time.

I cannot reproduce it in a recent Org release. Could you double-check
with a newer Org?

Thank you.

Regards,

-- 
Nicolas Goaziou                                                0x80A93738




Information forwarded to emacs-orgmode <at> gnu.org:
bug#24791; Package org-mode. (Sat, 02 Dec 2017 04:01:01 GMT) Full text and rfc822 format available.

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

From: Allen Li <vianchielfaura <at> gmail.com>
To: Nicolas Goaziou <mail <at> nicolasgoaziou.fr>
Cc: 24791 <at> debbugs.gnu.org, Jan Böhm <schmuufanpost <at> gmx.de>
Subject: Re: [O] bug#24791: org-todo-yesterday behaves like plain org-todo
 (incorrect timestamp)
Date: Fri, 1 Dec 2017 20:00:11 -0800
On Fri, Dec 1, 2017 at 1:53 PM, Nicolas Goaziou <mail <at> nicolasgoaziou.fr> wrote:
> Hello,
>
> Jan Böhm <schmuufanpost <at> gmx.de> writes:
>
>> Symptoms: both org-todo-yesterday and org-agenda-todo-yesterday behave
>> just like normally setting todo state to "DONE" with org-todo.
>> Specifically, the timestamp
>> added in the log takes the current time instead of 23:59 of the previous
>> day, as would be expected.
>>
>> Replicate behaviour:
>> start emacs -Q
>> set org-log-done to "time"
>> visit new file and switch to org mode
>> create TODO headline and set TODO state to "DONE" by calling
>> "org-todo-yesterday"
>> ⇒ todo state is set to DONE correctly, but the timestamp inserted in
>> the log drawer is the current time.
>
> I cannot reproduce it in a recent Org release. Could you double-check
> with a newer Org?

I am going to blindly wager that this is yet another bug caused by Org
mode's subtle timezone issues.

I can reproduce it (and crucially, I am not in the GMT time zone),
although the repro recipe produces a CLOSED timestamp and not a log
drawer timestamp.




Information forwarded to emacs-orgmode <at> gnu.org:
bug#24791; Package org-mode. (Mon, 04 Dec 2017 20:00:02 GMT) Full text and rfc822 format available.

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

From: Nicolas Goaziou <mail <at> nicolasgoaziou.fr>
To: Allen Li <vianchielfaura <at> gmail.com>
Cc: 24791 <at> debbugs.gnu.org, Jan Böhm <schmuufanpost <at> gmx.de>
Subject: Re: bug#24791: [O] bug#24791: org-todo-yesterday behaves like plain
 org-todo (incorrect timestamp)
Date: Mon, 04 Dec 2017 20:59:27 +0100
Hello,

Allen Li <vianchielfaura <at> gmail.com> writes:

> On Fri, Dec 1, 2017 at 1:53 PM, Nicolas Goaziou <mail <at> nicolasgoaziou.fr> wrote:
>> Hello,
>>
>> Jan Böhm <schmuufanpost <at> gmx.de> writes:
>>
>>> Symptoms: both org-todo-yesterday and org-agenda-todo-yesterday behave
>>> just like normally setting todo state to "DONE" with org-todo.
>>> Specifically, the timestamp
>>> added in the log takes the current time instead of 23:59 of the previous
>>> day, as would be expected.
>>>
>>> Replicate behaviour:
>>> start emacs -Q
>>> set org-log-done to "time"
>>> visit new file and switch to org mode
>>> create TODO headline and set TODO state to "DONE" by calling
>>> "org-todo-yesterday"
>>> ⇒ todo state is set to DONE correctly, but the timestamp inserted in
>>> the log drawer is the current time.
>>
>> I cannot reproduce it in a recent Org release. Could you double-check
>> with a newer Org?
>
> I am going to blindly wager that this is yet another bug caused by Org
> mode's subtle timezone issues.
>
> I can reproduce it (and crucially, I am not in the GMT time zone),
> although the repro recipe produces a CLOSED timestamp and not a log
> drawer timestamp.

I removed timezone references from maint. Can you still reproduce the
issue?

Regards,

-- 
Nicolas Goaziou                                                0x80A93738




Information forwarded to emacs-orgmode <at> gnu.org:
bug#24791; Package org-mode. (Mon, 04 Dec 2017 20:13:02 GMT) Full text and rfc822 format available.

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

From: Jan Böhm <schmuufanpost <at> gmx.de>
To: 24791 <at> debbugs.gnu.org
Subject: Re: bug#24791: [O] bug#24791: org-todo-yesterday behaves like plain
 org-todo (incorrect timestamp)
Date: Mon, 4 Dec 2017 21:12:06 +0100
Hi,

interestingly, it hasn't happend to me for a long time now – I assumed
that it had already been fixed. I tried again just now and I can no
longer reproduce it with Org 9.0.9. / Emacs 27.0.50.

Cheers,
Jan


Am 04.12.2017 um 20:59 schrieb Nicolas Goaziou:
> Hello,
> 
> Allen Li <vianchielfaura <at> gmail.com> writes:
> 
>> On Fri, Dec 1, 2017 at 1:53 PM, Nicolas Goaziou <mail <at> nicolasgoaziou.fr> wrote:
>>> Hello,
>>>
>>> Jan Böhm <schmuufanpost <at> gmx.de> writes:
>>>
>>>> Symptoms: both org-todo-yesterday and org-agenda-todo-yesterday behave
>>>> just like normally setting todo state to "DONE" with org-todo.
>>>> Specifically, the timestamp
>>>> added in the log takes the current time instead of 23:59 of the previous
>>>> day, as would be expected.
>>>>
>>>> Replicate behaviour:
>>>> start emacs -Q
>>>> set org-log-done to "time"
>>>> visit new file and switch to org mode
>>>> create TODO headline and set TODO state to "DONE" by calling
>>>> "org-todo-yesterday"
>>>> ⇒ todo state is set to DONE correctly, but the timestamp inserted in
>>>> the log drawer is the current time.
>>>
>>> I cannot reproduce it in a recent Org release. Could you double-check
>>> with a newer Org?
>>
>> I am going to blindly wager that this is yet another bug caused by Org
>> mode's subtle timezone issues.
>>
>> I can reproduce it (and crucially, I am not in the GMT time zone),
>> although the repro recipe produces a CLOSED timestamp and not a log
>> drawer timestamp.
> 
> I removed timezone references from maint. Can you still reproduce the
> issue?
> 
> Regards,
> 




Information forwarded to emacs-orgmode <at> gnu.org:
bug#24791; Package org-mode. (Fri, 08 Dec 2017 00:52:01 GMT) Full text and rfc822 format available.

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

From: Allen Li <vianchielfaura <at> gmail.com>
To: Nicolas Goaziou <mail <at> nicolasgoaziou.fr>
Cc: 24791 <at> debbugs.gnu.org, Jan Böhm <schmuufanpost <at> gmx.de>
Subject: Re: bug#24791: [O] bug#24791: org-todo-yesterday behaves like plain
 org-todo (incorrect timestamp)
Date: Thu, 7 Dec 2017 16:51:07 -0800
On Mon, Dec 4, 2017 at 11:59 AM, Nicolas Goaziou <mail <at> nicolasgoaziou.fr> wrote:
> Hello,
>
> Allen Li <vianchielfaura <at> gmail.com> writes:
>
>> On Fri, Dec 1, 2017 at 1:53 PM, Nicolas Goaziou <mail <at> nicolasgoaziou.fr> wrote:
>>> Hello,
>>>
>>> Jan Böhm <schmuufanpost <at> gmx.de> writes:
>>>
>>>> Symptoms: both org-todo-yesterday and org-agenda-todo-yesterday behave
>>>> just like normally setting todo state to "DONE" with org-todo.
>>>> Specifically, the timestamp
>>>> added in the log takes the current time instead of 23:59 of the previous
>>>> day, as would be expected.
>>>>
>>>> Replicate behaviour:
>>>> start emacs -Q
>>>> set org-log-done to "time"
>>>> visit new file and switch to org mode
>>>> create TODO headline and set TODO state to "DONE" by calling
>>>> "org-todo-yesterday"
>>>> ⇒ todo state is set to DONE correctly, but the timestamp inserted in
>>>> the log drawer is the current time.
>>>
>>> I cannot reproduce it in a recent Org release. Could you double-check
>>> with a newer Org?
>>
>> I am going to blindly wager that this is yet another bug caused by Org
>> mode's subtle timezone issues.
>>
>> I can reproduce it (and crucially, I am not in the GMT time zone),
>> although the repro recipe produces a CLOSED timestamp and not a log
>> drawer timestamp.
>
> I removed timezone references from maint. Can you still reproduce the
> issue?

I can confirm that it's fixed on 9.1.4 (org-plus-contrib-20171205)




Reply sent to Nicolas Goaziou <mail <at> nicolasgoaziou.fr>:
You have taken responsibility. (Fri, 29 Dec 2017 11:45:04 GMT) Full text and rfc822 format available.

Notification sent to Jan Böhm <schmuufanpost <at> gmx.de>:
bug acknowledged by developer. (Fri, 29 Dec 2017 11:45:04 GMT) Full text and rfc822 format available.

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

From: Nicolas Goaziou <mail <at> nicolasgoaziou.fr>
To: Allen Li <vianchielfaura <at> gmail.com>
Cc: 24791-done <at> debbugs.gnu.org,
 Jan Böhm <schmuufanpost <at> gmx.de>
Subject: Re: bug#24791: [O] bug#24791: org-todo-yesterday behaves like plain
 org-todo (incorrect timestamp)
Date: Fri, 29 Dec 2017 12:44:36 +0100
Hello,

Allen Li <vianchielfaura <at> gmail.com> writes:

> I can confirm that it's fixed on 9.1.4 (org-plus-contrib-20171205)

I'm closing the report, then.

Thank you.

Regards,

-- 
Nicolas Goaziou                                                0x80A93738




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Fri, 26 Jan 2018 12:24:06 GMT) Full text and rfc822 format available.

This bug report was last modified 7 years and 143 days ago.

Previous Next


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