mirror of https://github.com/morpheus65535/bazarr
Merge branch 'development'
This commit is contained in:
commit
4d618b8da4
|
@ -10,6 +10,7 @@ langdetect
|
||||||
Pillow
|
Pillow
|
||||||
py-pretty
|
py-pretty
|
||||||
pycountry
|
pycountry
|
||||||
|
pytz
|
||||||
requests
|
requests
|
||||||
subliminal
|
subliminal
|
||||||
tzlocal
|
tzlocal
|
||||||
|
|
|
@ -7,10 +7,11 @@ from check_update import *
|
||||||
|
|
||||||
from apscheduler.schedulers.background import BackgroundScheduler
|
from apscheduler.schedulers.background import BackgroundScheduler
|
||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
|
import pytz
|
||||||
from tzlocal import get_localzone
|
from tzlocal import get_localzone
|
||||||
|
|
||||||
if str(get_localzone()) == "local":
|
if str(get_localzone()) == "local":
|
||||||
scheduler = BackgroundScheduler(timezone=utc)
|
scheduler = BackgroundScheduler(timezone=pytz.timezone('UTC'))
|
||||||
else:
|
else:
|
||||||
scheduler = BackgroundScheduler()
|
scheduler = BackgroundScheduler()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue