summaryrefslogtreecommitdiff
path: root/lisp/=gnus.el
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1994-08-01 20:00:24 +0000
committerRichard M. Stallman <rms@gnu.org>1994-08-01 20:00:24 +0000
commitc59bd843b6df947158dfc580141adf5300d8b2c2 (patch)
tree1366dba266d5276fffb8c1c83fa80ed7bca483ca /lisp/=gnus.el
parenta6372cca4facfa74e1ddedd9be1bf995aeb9a532 (diff)
downloademacs-c59bd843b6df947158dfc580141adf5300d8b2c2.tar.gz
(gnus-sortable-date): Use timezone-make-time-string.
Diffstat (limited to 'lisp/=gnus.el')
-rw-r--r--lisp/=gnus.el15
1 files changed, 7 insertions, 8 deletions
diff --git a/lisp/=gnus.el b/lisp/=gnus.el
index 1862ad5b37b..6407862d0fe 100644
--- a/lisp/=gnus.el
+++ b/lisp/=gnus.el
@@ -5221,14 +5221,13 @@ If case-fold-search is non-nil, case of letters is ignored."
(defun gnus-sortable-date (date)
"Make sortable string by string-lessp from DATE.
Timezone package is used."
- (let* ((date (timezone-parse-date date)) ;[Y M D T]
- (year (string-to-int (aref date 0)))
- (month (string-to-int (aref date 1)))
- (day (string-to-int (aref date 2)))
- (time (aref date 3))) ;HH:MM:SS
- ;; Timezone package is used. But, we don't have to care about
- ;; the timezone since article's timezones are always GMT.
- (timezone-make-sortable-date year month day time)
+ (let* ((date (timezone-fix-time date nil nil)) ;[Y M D H M S]
+ (year (aref date 0))
+ (month (aref date 1))
+ (day (aref date 2)))
+ (timezone-make-sortable-date year month day
+ (timezone-make-time-string
+ (aref date 3) (aref date 4) (aref date 5)))
))
;;(defun gnus-sortable-date (date)