aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/gnus/gnus-score.el11
1 files changed, 8 insertions, 3 deletions
diff --git a/lisp/gnus/gnus-score.el b/lisp/gnus/gnus-score.el
index bd19e7d7cd7..479b7496cf1 100644
--- a/lisp/gnus/gnus-score.el
+++ b/lisp/gnus/gnus-score.el
@@ -893,9 +893,14 @@ If optional argument `EXTRA' is non-nil, it's a non-standard overview header."
893 (t "permanent")) 893 (t "permanent"))
894 header 894 header
895 (if (< score 0) "lower" "raise")) 895 (if (< score 0) "lower" "raise"))
896 (if (numberp match) 896 (cond ((numberp match) (int-to-string match))
897 (int-to-string match) 897 ((string= header "date")
898 match)))) 898 (int-to-string
899 (-
900 (/ (car (time-convert (current-time) 1)) 86400)
901 (/ (car (time-convert (gnus-date-get-time match) 1))
902 86400))))
903 (t match)))))
899 904
900 ;; If this is an integer comparison, we transform from string to int. 905 ;; If this is an integer comparison, we transform from string to int.
901 (if (eq (nth 2 (assoc header gnus-header-index)) 'gnus-score-integer) 906 (if (eq (nth 2 (assoc header gnus-header-index)) 'gnus-score-integer)