From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/17722 Path: main.gmane.org!not-for-mail From: "Robert Mihram" Newsgroups: gmane.emacs.gnus.general Subject: Re: pgnus and message-make-date Date: 11 Oct 1998 14:34:59 +0200 Sender: owner-ding@hpc.uh.edu Message-ID: References: NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 (generated by SEMI 1.8.6 - "Fukuoka") Content-Type: text/plain; charset=US-ASCII X-Trace: main.gmane.org 1035156372 2410 80.91.224.250 (20 Oct 2002 23:26:12 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 20 Oct 2002 23:26:12 +0000 (UTC) Return-Path: Original-Received: from gizmo.hpc.uh.edu (gizmo.hpc.uh.edu [129.7.102.31]) by sclp3.sclp.com (8.8.5/8.8.5) with ESMTP id IAA19949 for ; Sun, 11 Oct 1998 08:40:28 -0400 (EDT) Original-Received: from sina.hpc.uh.edu (sina.hpc.uh.edu [129.7.3.5]) by gizmo.hpc.uh.edu (8.7.6/8.7.3) with ESMTP id HAF23004; Sun, 11 Oct 1998 07:11:11 -0500 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Sun, 11 Oct 1998 07:40:08 -0500 (CDT) Original-Received: from sclp3.sclp.com (root@sclp3.sclp.com [209.195.19.139]) by sina.hpc.uh.edu (8.7.3/8.7.3) with ESMTP id HAA08612 for ; Sun, 11 Oct 1998 07:39:59 -0500 (CDT) Original-Received: from www.inx.de (root@www.inx.de [195.21.255.251]) by sclp3.sclp.com (8.8.5/8.8.5) with SMTP id IAA19942 for ; Sun, 11 Oct 1998 08:39:49 -0400 (EDT) Original-Received: by www.inx.de (Smail3.2.0.96inx) from denkall (195.21.32.83) with esmtp id ; Sun, 11 Oct 1998 14:39:45 +0200 (MET DST) Original-Received: (qmail 14529 invoked by uid 500); 11 Oct 1998 12:34:59 -0000 Mail-Followup-To: ding@gnus.org Original-To: ding@gnus.org In-Reply-To: Lars Magne Ingebrigtsen's message of "11 Oct 1998 00:20:03 +0200" Original-Lines: 37 X-Mailer: Semi-gnus 6.8.19 (based on Gnus 5.6.44; for SEMI 1.8, FLIM 1.8/1.9) Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:17722 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:17722 Lars Magne Ingebrigtsen writes: > "Robert Mihram" writes: > > > I've just tried pgnus (v0.33), but wasn't able to post anymore (my ISP's > > server told me: 441 Can't parse "Date" header). The problem is, that > > message-make-date generates a locale's based month name. > > > > Example: "06 Oct 1998 17:52:25 +0200" (semi-gnus) > > "06 Okt 1998 17:52:55 +0200" (pgnus) > > Ick. Is there some way of telling `format-time-string' that we don't > want to use any locale? Or the "us" locale, or something? I don't think so, but we could use timezone-make-date-arpa-standard: timezone-make-date-arpa-standard is a compiled Lisp function in `timezone'. (timezone-make-date-arpa-standard DATE &optional LOCAL TIMEZONE) Convert DATE to an arpanet standard date. Optional 1st argument LOCAL specifies the default local timezone of the DATE; if nil, GMT is assumed. Optional 2nd argument TIMEZONE specifies a time zone to be represented in; if nil, the local time zone is assumed. This is semi-gnus message-make-date: (defun message-make-date () "Make a valid data header." (let ((now (current-time))) (timezone-make-date-arpa-standard (current-time-string now) (current-time-zone now)))) Regards, Rob -- "Yeah, yeah, yeah, yeah" - 22 Pistepirkko