[Zope] Cookies & Expiration
Aleksander Salwa
ololo@zeus.polsl.gliwice.pl
Sun, 5 Nov 2000 08:06:00 +0100 (CET)
On Fri, 3 Nov 2000, Steve Drees wrote:
> Have a pythonmethod
>
> ID expireIn1Week
> Parameter List self
> _____________BODY__________
> t = self.ZopeTime() + 7.0 # 1 week in the future
> t = t.toZone('GMT')
>
> return t.strftime("%A, %d-%b-%Y %H:%M:%S GMT")
It (strftime) is correct as long as you don't use locales.
(There's a bug related to this in ZServer/medusa/http_date.py.)
ololo@zeus.polsl.gliwice.pl
/--------------------------------------\
| `long long long' is too long for GCC |
\--------------------------------------/