Gnus development mailing list
 help / color / mirror / Atom feed
From: "Robert Mihram" <rob.dm@berlin.snafu.de>
Subject: Re: pgnus and message-make-date
Date: 11 Oct 1998 14:34:59 +0200	[thread overview]
Message-ID: <m367drwa30.fsf@denkall.dyn.ml.org> (raw)
In-Reply-To: Lars Magne Ingebrigtsen's message of "11 Oct 1998 00:20:03 +0200"

Lars Magne Ingebrigtsen <larsi@gnus.org> writes:

> "Robert Mihram" <rob.dm@berlin.snafu.de> 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


  reply	other threads:[~1998-10-11 12:34 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-10-06 16:00 Robert Mihram
1998-10-07  9:18 ` Robert Bihlmeyer
1998-10-10 22:20 ` Lars Magne Ingebrigtsen
1998-10-11 12:34   ` Robert Mihram [this message]
1998-10-11 15:44     ` Lars Magne Ingebrigtsen
1998-10-11 18:13       ` Kai.Grossjohann
1998-10-11 22:52         ` Lars Magne Ingebrigtsen
1998-10-12 13:51           ` Kai Grossjohann
1998-10-12 14:08             ` Lars Magne Ingebrigtsen
1998-10-12 14:57               ` Kai Grossjohann
1998-10-13  4:06           ` Stephen Zander
1998-10-13  8:12             ` Kai Grossjohann
1998-10-13  9:29           ` Robert Bihlmeyer
1998-10-17 19:39             ` Lars Magne Ingebrigtsen
1998-10-19 15:53               ` Robert Bihlmeyer
1998-10-19 18:13                 ` Paul Franklin
1998-10-19 18:25                   ` Ulrich Drepper
1998-10-19 19:27                 ` Lars Magne Ingebrigtsen

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=m367drwa30.fsf@denkall.dyn.ml.org \
    --to=rob.dm@berlin.snafu.de \
    /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).