[Zope-dev] DateTime.rfc822() bug?
Lennart Regebro
lennart@torped.se
Fri, 11 Oct 2002 14:00:03 +0200
RFC 2822 (which is the currently valid one, if I understand correctly)
specifies the date format to have four digit zone specifications, ie
"GMT+0200", while DateTime.rfc822() happily returns "GMT+2". Not that this
seems to be any problem, I'm just looking for an answer if this is how it's
supposed to be?
I discovered it, because Outlook Express handles RFC822 dates incorrectly
and will display both the "Fri, 11 Oct 2002 13:47:03 GMT+0200" and "Date:
Fri, 11 Oct 2002 13:47:03 GMT+2" as "2002-10-11 15:47". Obviously some
programmer at Microsoft hasn't read the rfc properly. :-)
"The date and time-of-day SHOULD express local time.
The zone specifies the offset from Coordinated Universal Time (UTC,
formerly referred to as "Greenwich Mean Time") that the date and
time-of-day represent."
While MS obviously thinks it represents GMT. Easy mistake to do, if you
don't read the rfc...
Best Regards
Lennart Regebro, Torped
http://www.easypublisher.com/