cubicweb #2087998 logout fails when CW runs on 32bit windows (with 32bit python) [validation pending]

Stack trace is displayed on scree:

Traceback (most recent call last):
File "C:\Documents and Settings\CJA539\My Documents\Python\Pylos\cubicweb\etwist\server.py", line 311, in render_request
 return self._render_request(request)
File "C:\Documents and Settings\CJA539\My Documents\Python\Pylos\cubicweb\etwist\server.py", line 369, in _render_request
 return self.redirect(request=req, location=ex.url)
File "C:\Documents and Settings\CJA539\My Documents\Python\Pylos\cubicweb\etwist\server.py", line 386, in redirect
 headers=request.headers_out)
File "C:\Documents and Settings\CJA539\My Documents\Python\Pylos\cubicweb\etwist\http.py", line 22, in __init__
 self._init_headers()
File "C:\Documents and Settings\CJA539\My Documents\Python\Pylos\cubicweb\etwist\http.py", line 29, in _init_headers
 for k, values in self._headers_out.getAllRawHeaders():
File "C:\Documents and Settings\CJA539\My Documents\Python\Pylos\cubicweb\web\http_headers.py", line 1395, in getAllRawHeaders
 v = self._toRaw(k)
File "C:\Documents and Settings\CJA539\My Documents\Python\Pylos\cubicweb\web\http_headers.py", line 1287, in _toRaw
 r = self.handler.generate(name, h)
File "C:\Documents and Settings\CJA539\My Documents\Python\Pylos\cubicweb\web\http_headers.py", line 105, in generate
 header = g(header)
File "C:\Documents and Settings\CJA539\My Documents\Python\Pylos\cubicweb\web\http_headers.py", line 1156, in generateSetCookie
 out.append("expires=%s" % generateDateTime(cookie.expires))
File "C:\Documents and Settings\CJA539\My Documents\Python\Pylos\cubicweb\web\http_headers.py", line 747, in generateDateTime
 year, month, day, hh, mm, ss, wd, y, z = time.gmtime(secSinceEpoch)
ValueError: (22, 'Invalid argument')

secSinceEpoch is a negative number. Linux accepts it, but not Windows.

prioritynormal
typebug
done in3.13.10
load left0.000
closed by#e8091b415ad8 [http, windows] fix remove_cookie trying to expire a cookie before the Epoch (closes: #2087998)