web/request.py
changeset 8082 1c37783ff610
parent 8064 6d8eb873256d
parent 8081 e8091b415ad8
child 8128 0a927fe4541b
child 8177 e4ab883f07d9
--- a/web/request.py	Thu Nov 10 10:13:40 2011 +0100
+++ b/web/request.py	Mon Nov 14 12:13:48 2011 +0100
@@ -554,7 +554,11 @@
             warn('[3.13] remove_cookie now take only a name as argument',
                  DeprecationWarning, stacklevel=2)
             name = bwcompat
-        self.set_cookie(name, '', maxage=0, expires=date(1970, 1, 1))
+        self.set_cookie(name, '', maxage=0,
+                        # substracting GMTOFFSET because set_cookie
+                        # expects a localtime and we don't want to
+                        # handle times before the EPOCH
+                        expires=date(1970, 1, 1) - GMTOFFSET) 
 
     def set_content_type(self, content_type, filename=None, encoding=None):
         """set output content type for this request. An optional filename