* gnus-art.el (article-make-date-line): Refer to the value for
authorKatsumi Yamaoka <yamaoka@jpl.org>
Thu, 15 Aug 2002 10:58:18 +0000 (10:58 +0000)
committerKatsumi Yamaoka <yamaoka@jpl.org>
Thu, 15 Aug 2002 10:58:18 +0000 (10:58 +0000)
 `gnus-article-time-format' in the summary buffer.

lisp/gnus-art.el

index fc12860..cbecf2d 100644 (file)
@@ -2593,11 +2593,14 @@ should replace the \"Date:\" one, or should be added below it."
                             date)))
         ;; Let the user define the format.
         ((eq type 'user)
-         (if (gnus-functionp gnus-article-time-format)
-             (funcall gnus-article-time-format time)
-           (concat
-            "Date: "
-            (format-time-string gnus-article-time-format time))))
+         (let ((format (or (condition-case nil
+                               (with-current-buffer gnus-summary-buffer
+                                 gnus-article-time-format)
+                             (error nil))
+                           gnus-article-time-format)))
+           (if (gnus-functionp format)
+               (funcall format time)
+             (concat "Date: " (format-time-string format time)))))
         ;; ISO 8601.
         ((eq type 'iso8601)
          (let ((tz (car (current-time-zone time))))