[Zope-Coders] DateTime screwup on 2.6 branch and HEAD

Andreas Jung Andreas Jung <lists@andreas-jung.com>
Sat, 19 Oct 2002 07:34:52 +0200


There is another outstanding problem with rfc822()

    def rfc822(self):

        import pdb
        pdb.set_trace()
        """Return the date in RFC 822 format"""
        if self._tz == self._localzone0: #Use local standard time
            tzoffset = _tzoffset2rfc822zone(localzone)
                                            ^^^^^^^^^^
localzone is *not* defined in this context and might raise an exception
under some conditions! Please fix that since it breaks at least
dtml-sendmail for some installations.

-aj