Index: utils/tzinfo.py
===================================================================
--- utils/tzinfo.py	(revision 4325)
+++ utils/tzinfo.py	(working copy)
@@ -46,7 +46,14 @@
         return time.tzname[self._isdst(dt)]
 
     def _isdst(self, dt):
-        tt = (dt.year, dt.month, dt.day, dt.hour, dt.minute, dt.second, dt.weekday(), 0, -1)
+        # clip year value in range which time.mktime accepts
+        if dt.year<1970:
+            year = 1970
+        elif dt.year>2037:
+            year = 2037
+        else:
+            year = dt.year
+        tt = (year, dt.month, dt.day, dt.hour, dt.minute, dt.second, dt.weekday(), 0, -1)
         stamp = time.mktime(tt)
         tt = time.localtime(stamp)
         return tt.tm_isdst > 0
