coagulant/django-geoip — Issue #14: timestamp out of range for platform time_t
Author: coagulant
Created: 2012-02-27 21:03:59+00:00
State: open
Labels: bug

```
169======================================================================
170ERROR: test_do_set (django_geoip.tests.test_storage.LocationCookieStorageTest)
171----------------------------------------------------------------------
172Traceback (most recent call last):
173 File "/home/vagrant/virtualenv/python2.6/lib/python2.6/site-packages/mock.py", line 1224, in patched
174 return func(*args, **keywargs)
175 File "/home/vagrant/builds/coagulant/django-geoip/django_geoip/tests/test_storage.py", line 64, in test_do_set
176 storage._do_set(10)
177 File "/home/vagrant/builds/coagulant/django-geoip/django_geoip/storage.py", line 87, in _do_set
178 expires=datetime.now() + timedelta(seconds=settings.GEOIP_COOKIE_EXPIRES))
179 File "/home/vagrant/virtualenv/python2.6/lib/python2.6/site-packages/django/http/__init__.py", line 584, in set_cookie
180 max_age)
181 File "/home/vagrant/virtualenv/python2.6/lib/python2.6/site-packages/django/utils/http.py", line 70, in cookie_date
182 rfcdate = formatdate(epoch_seconds)
183 File "/usr/lib/python2.6/email/utils.py", line 160, in formatdate
184 now = time.gmtime(timeval)
185ValueError: timestamp out of range for platform time_t
```