瀏覽代碼

Fix previous commit

Bastien Guerry 12 年之前
父節點
當前提交
450878fb21
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      lisp/org-clock.el

+ 1 - 1
lisp/org-clock.el

@@ -2576,7 +2576,7 @@ from the dynamic block definition."
 		(apply 'encode-time (org-parse-time-string te))))))
     (setq tsb
 	  (if (eq step0 'week)
-	      (- ts (* 86400 (- (nth (abs (- 7 ws)) (decode-time (seconds-to-time ts))) 1)))
+	      (- ts (* 86400 (- (nth 6 (decode-time (seconds-to-time ts))) ws)))
 	    ts))
     (setq p1 (plist-put p1 :header ""))
     (setq p1 (plist-put p1 :step nil))