From: Katsumi Yamaoka <yamaoka@jpl.org>
Subject: gnus-article-time-format as a group parameter
Date: Thu, 15 Aug 2002 19:34:15 +0900 [thread overview]
Message-ID: <yotlu1lwz9zs.fsf@jpl.org> (raw)
Hi,
The following code will make Gnus show Date headers in the
Japanese standard time for fj.* or japan.* newsgroups, otherwise
in the local time, even if a user lives in the outside of Japan.
However, it didn't work. I've fixed it in CVS.
(setq gnus-treat-date-local 'head)
(setq gnus-parameters
`(("\\`fj\\.\\|\\`japan\\."
(gnus-treat-date-local nil)
(gnus-treat-date-user-defined 'head)
(gnus-article-time-format
(lambda (time)
(let ((ms (car time))
(ls (car (cdr time))))
(if (>= (setq ls (+ ls ,(- 32400 ;; = +09.00 x 3600
(car (current-time-zone)))))
65536)
(setq ls (- ls 65536)
ms (1+ ms)))
(format-time-string "Date: %a %b %d %T %Y +0900"
(list ms ls))))))))
--
Katsumi Yamaoka <yamaoka@jpl.org>
next reply other threads:[~2002-08-15 10:34 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-08-15 10:34 Katsumi Yamaoka [this message]
2002-08-15 12:12 ` Katsumi Yamaoka
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=yotlu1lwz9zs.fsf@jpl.org \
--to=yamaoka@jpl.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).