mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-02-11 13:44:35 +01:00
...
This commit is contained in:
parent
cc1c5bb6fd
commit
c187c899ca
1 changed files with 4 additions and 0 deletions
|
|
@ -12,6 +12,10 @@
|
|||
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:
|
||||
|
|
|
|||
Loading…
Reference in a new issue