summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTrevor Murphy <trevor.m.murphy@gmail.com>2013-08-08 16:30:37 -0700
committerNicolas Goaziou <n.goaziou@gmail.com>2013-08-10 10:12:34 +0200
commit13cb28a227275d8d54193267159d6fa5e88650ab (patch)
tree653a652ad07963b605b7ca5f76f642961586bda6
parentc82cb4f75e42bb1d0eadd13f18967a17598b8d65 (diff)
downloadorg-mode-13cb28a227275d8d54193267159d6fa5e88650ab.tar.gz
Timestamps: Handle sub-10-min ranges when updating timestamps
* lisp/org.el (org-get-compact-tod): Always pad minutes to two places. TINYCHANGE
-rw-r--r--lisp/org.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/org.el b/lisp/org.el
index 798816b..6caa0b0 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -16068,7 +16068,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.