This commit is contained in:
Kovid Goyal 2010-02-15 16:56:33 -07:00
parent cc1c5bb6fd
commit c187c899ca

View File

@ -12,6 +12,10 @@ from dateutil.parser import parse
from dateutil.tz import tzlocal, tzutc
class SafeLocalTimeZone(tzlocal):
'''
Assume DST was not in effect for historical dates, if DST
data for the local timezone is not present in the operating system.
'''
def _isdst(self, dt):
try: