Subject: bug#79012: 30.1; org-timer-set-timer evaluates "0:0x" effort into x seconds in org agenda, while org-mode file it works fine with x minutes

From: Arthur Heymans <[email-masked]>
Date: Mon, 14 Jul 2025 09:42:10 +0200

Hello

I have an issue with org-timer-set-timer when used on a node with an
effort set of the format "0:0x". The intended behavior is that this is
evaluated into a timer of x minutes. This works fine in an org-mode
buffer.

However if I try to do the same in a calendar buffer the timer gets set
to x seconds.

The follow hack seems to work around the issue

diff --git a/lisp/org/org-timer.el b/lisp/org/org-timer.el
index 9d4e350429b..76ccd938a44 100644
--- a/lisp/org/org-timer.el
+++ b/lisp/org/org-timer.el
@@ -435,7 +435,7 @@ using three \\[universal-argument] prefix arguments."
 	 (minutes (or (and (numberp opt) (number-to-string opt))
 		      (and (not (equal opt '(64)))
 			   effort-minutes
-			   (number-to-string effort-minutes))
+			   (format "%d:00" effort-minutes))
 		      (and (consp opt) default-timer)
 		      (and (stringp opt) opt)
 		      (read-from-minibuffer
--