GNU bug report logs -
#50216
27.2; timeclock gives incorrect time in mode-line
Previous Next
Reported by: Colin Baxter <m43cap <at> yandex.com>
Date: Thu, 26 Aug 2021 19:12:01 UTC
Severity: normal
Found in version 27.2
Fixed in version 28.1
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
Lars Ingebrigtsen <larsi <at> gnus.org> writes:
> I haven't really started debugging in, but the issue seems to be
> `timeclock-find-discrep' using some data that was computed before
> timeclock-workday was set...
Yup, that was it -- I made it flush the data on workday changes, and now
it displays correctly for me in the timelog test case -- that is, when
doing timelog-in, it'll use the current timelog-workday setting and
compute stuff correctly.
Note, however, that initial display when doing
(timeclock-mode-line-display 1)
(setq timeclock-workday (* 12 60 60))
will be incorrect -- because setting a variable like this won't trigger
mode-line updates. (Until a minute has passed and it updates the line.)
So I've noted in the timeclock-mode-line-display doc string that this
shouldn't be done.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
This bug report was last modified 3 years and 266 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.