emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] [PATCH] Fix incorrect time calculation for org-extend-today-unti


From: Carsten Dominik
Subject: Re: [O] [PATCH] Fix incorrect time calculation for org-extend-today-until
Date: Thu, 17 Oct 2013 07:42:37 +0200

Hi Ian,

I must have missed this a month ago, sorry about this.  I applied the patch now
(by hand, git-am choked on it.)

Thank you!

- Carsten

On 16.10.2013, at 20:58, Ian Kelling <address@hidden> wrote:

> I sent this patch a month ago, but it got no reply. Perhaps that I
> accidentally had html email format didn't help.
> 
> During the extra hours of org-extend-today-until, when
> org-clock-mode-line-total is 'today, the clocked time shown in the
> modeline is wrong. It ignores all previously clocked time, when it
> should add them starting from the past day beyond
> org-extend-today-until hours.  This also affects clock tables.
> 
> The problem can be reproduced in emacs -q with the following code,
> as long as the current time is not between 11 PM and 12 AM:
> 
>  (progn
>    (require 'org-clock)
>    (setq org-clock-mode-line-total 'today)
>    (setq org-extend-today-until 23)
>    (format-time-string "%a %D %l:%M %p" (org-clock-get-sum-start)))
> 
> expected result:
> A date of yesterday, time of 11:00 PM
> 
> Actual result:
> A date of today, time of 11:00 PM
> 
> Note this patch only fixes a bug where org-extend-today-until
> is already used.
> 
> 
> - Ian Kelling
> 
> <0001-Fix-incorrect-time-calculation-for-org-extend-today-.patch>

Attachment: signature.asc
Description: Message signed with OpenPGP using GPGMail


reply via email to

[Prev in Thread] Current Thread [Next in Thread]