Hello Lennart, 

Friday, October 11, 2002, 2:00:03 PM, you wrote:

LR> RFC 2822 (which is the currently valid one, if I understand correctly)
LR> specifies the date format to have four digit zone specifications, ie
LR> "GMT+0200", while DateTime.rfc822() happily returns "GMT+2". Not that this
LR> seems to be any problem, I'm just looking for an answer if this is how it's
LR> supposed to be?

i can confirm that this is a bug in DateTime.rfc822(), and that
rfc-conformant mailclients choke on it aswell..

i believe it has been reported to the lists before , and i believe i
have also seen it in the collector..

(the collector seems to be down , but i found this request on google..

Your concerns are valid.
i usually solve it by use of a small script(python) somewhat
resembling this :

# params   indate
fmtstr = "%a, %d %b %Y %X +0200"
return indate.strftime(fmtstr)

Geir Bækholt

Zope-Dev maillist  -  [EMAIL PROTECTED]
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope )

Reply via email to