At 08:12 27/05/99 , Service Informatique CHSR wrote:
At the beginning of the world, while inventing the internet (no, Al Gore didn't :-)) I suggested a patch adressing that issue. However, I didn't write:
e=(DateTime('GMT') + 365).rfc822()
but:
try: e=(self.ZopeTime()+365).rfc822() except: e='the old date value'
The try: except: statement is for the guys whose timezone is not in DateTime.py. In that case, DateTimeObject+offset raises an exception.
This will push DC into finally implementing my tzoffset patch =). Support for any timezone offset of whole hours.
And yes, I find that using DateTime('GMT') is better than writing self.ZopeTime().
According to the Netscape Cookie specification, all cookie expiration dates should be expressed in the GMT timezone... I thought Zope better comply, so it'll work in browsers that are picky about this. -- Martijn Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------