mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
cc1c5bb6fd
commit
c187c899ca
@ -12,6 +12,10 @@ from dateutil.parser import parse
|
|||||||
from dateutil.tz import tzlocal, tzutc
|
from dateutil.tz import tzlocal, tzutc
|
||||||
|
|
||||||
class SafeLocalTimeZone(tzlocal):
|
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):
|
def _isdst(self, dt):
|
||||||
try:
|
try:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user