|
@@ -1046,9 +1046,9 @@ If `only-dangling-p' is non-nil, only ask to resolve dangling
|
|
|
(lambda (clock)
|
|
|
(format
|
|
|
"Dangling clock started %d mins ago"
|
|
|
- (floor
|
|
|
- (/ (- (org-float-time (current-time))
|
|
|
- (org-float-time (cdr clock))) 60))))))
|
|
|
+ (floor (- (org-float-time)
|
|
|
+ (org-float-time (cdr clock)))
|
|
|
+ 60)))))
|
|
|
(or last-valid
|
|
|
(cdr clock)))))))))))
|
|
|
|
|
@@ -1370,7 +1370,7 @@ decides which time to use."
|
|
|
(current-time))
|
|
|
((equal cmt "today")
|
|
|
(setq org--msg-extra "showing today's task time.")
|
|
|
- (let* ((dt (decode-time (current-time))))
|
|
|
+ (let* ((dt (decode-time)))
|
|
|
(setq dt (append (list 0 0 0) (nthcdr 3 dt)))
|
|
|
(if org-extend-today-until
|
|
|
(setf (nth 2 dt) org-extend-today-until))
|
|
@@ -2031,7 +2031,7 @@ If MSTART is non-nil, use this number to specify the starting day of a
|
|
|
month (1 is the first day of the month).
|
|
|
If you can combine both, the month starting day will have priority."
|
|
|
(if (integerp key) (setq key (intern (number-to-string key))))
|
|
|
- (let* ((tm (decode-time (or time (current-time))))
|
|
|
+ (let* ((tm (decode-time time))
|
|
|
(s 0) (m (nth 1 tm)) (h (nth 2 tm))
|
|
|
(d (nth 3 tm)) (month (nth 4 tm)) (y (nth 5 tm))
|
|
|
(dow (nth 6 tm))
|
|
@@ -2672,10 +2672,8 @@ TIME: The sum of all time spend in this tree, in minutes. This time
|
|
|
(when (and te (listp te))
|
|
|
(setq te (format "%4d-%02d-%02d" (nth 2 te) (car te) (nth 1 te))))
|
|
|
;; Now the times are strings we can parse.
|
|
|
- (if ts (setq ts (org-float-time
|
|
|
- (seconds-to-time (org-matcher-time ts)))))
|
|
|
- (if te (setq te (org-float-time
|
|
|
- (seconds-to-time (org-matcher-time te)))))
|
|
|
+ (if ts (setq ts (org-matcher-time ts)))
|
|
|
+ (if te (setq te (org-matcher-time te)))
|
|
|
(save-excursion
|
|
|
(org-clock-sum ts te
|
|
|
(unless (null matcher)
|