Remember to cover the basics, that is, what you expected to happen and
what in fact did happen. You don't know how to make a good report? See
https://orgmode.org/manual/Feedback.html#Feedback
Your bug report will be posted to the Org mailing list.
------------------------------------------------------------------------
Hi all,
Given a task with an effort larger than 60 minutes, then
org-timer-set-timer sets the countdown timer to 0.
For instance, for a task like this
***** NEXT complete action items
:PROPERTIES:
:Effort: 2:00
:ACTIVATED: [2026-06-25]
:END:
the resulting countdown timer is 0 when C-c C-x ;
I have dived into the issue and found that the string of the seconds part is
wrongly
added when the count is larger than 60 minutes. I applied the
following patch to get it to work
(when (string-match "\\`[0-9]+\\'" minutes)
- (setq minutes (concat minutes ":00")))
+ (let* ((total (string-to-number minutes))
+ (A (/ total 60))
+ (B (% total 60)))
+ (setq minutes (format "%d:%02d:00" A B))))
I tested for the following cases and behaved as expected:
:Effort: 2:00 (120 minutes)
:Effort: 1:00 (60 minutes)
:Effort: 0:30 (30 minutes)
:Effort: 60:00 (3600 minutes)
:Effort: 101:00 (6060 minutes)
Hope it can help to solve the issue.
Thanks,
Diego Ezequiel Vommaro
Emacs : GNU Emacs 29.3 (build 2, x86_64-pc-linux-gnu, X toolkit, cairo version
1.18.0, Xaw3d scroll bars)
of 2024-04-01, modified by Debian
Package: Org mode version 9.8.6 (release_9.8.6.dirty @
/home/diego.vommaro/Documents/Home/repos/org-mode/lisp/)