[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[O] [PATCH] Fix incorrect time calculation for org-extend-today-until
From: |
Ian Kelling |
Subject: |
[O] [PATCH] Fix incorrect time calculation for org-extend-today-until |
Date: |
Wed, 16 Oct 2013 11:58:51 -0700 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130922 Icedove/17.0.9 |
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
Description: Text Data
- [O] [PATCH] Fix incorrect time calculation for org-extend-today-until,
Ian Kelling <=