[O] [PATCH v2] Timestamps: Handle sub-10-min ranges when updating timestamps

2013-08-08 Thread Trevor Murphy
* lisp/org.el (org-get-compact-tod): Always pad minutes to two places.

TINYCHANGE
---
 lisp/org.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/org.el b/lisp/org.el
index b1a2fa8..e13c2b8 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -16077,7 +16077,7 @@ with the current time without prompting the user."
(setq dh (- h2 h1) dm (- m2 m1))
(if (< dm 0) (setq dm (+ dm 60) dh (1- dh)))
(concat t1 "+" (number-to-string dh)
-   (if (/= 0 dm) (concat ":" (number-to-string dm
+   (and (/= 0 dm) (format ":%02d" dm)))
 
 (defun org-time-stamp-inactive (&optional arg)
   "Insert an inactive time stamp.
--
1.8.3.4




Re: [O] [PATCH v2] Timestamps: Handle sub-10-min ranges when updating timestamps

2013-08-10 Thread Nicolas Goaziou
Hello,

Trevor Murphy  writes:

> * lisp/org.el (org-get-compact-tod): Always pad minutes to two places.
>
> TINYCHANGE

Applied. Thank you.


Regards,

-- 
Nicolas Goaziou