ValueError on dates before 1900

Issue #1 resolved
Daniel Krech
created an issue

{{{

d = datetime.date(1885, 01, 04)
rfc3339(d)
Traceback (most recent call last):
File "<console>", line 1, in <module>
File "[...]/rfc3339.py", line 130, in rfc3339
utcoffset = _utc_offset(date, use_system_timezone)
File "[...]/rfc3339.py", line 75, in _utc_offset
t = time.mktime(date.timetuple())
ValueError: year out of range

}}}

Comments (3)

  1. Log in to comment