mirror of
https://github.com/SickGear/SickGear.git
synced 2025-01-21 17:13:42 +00:00
Update network_timezones.py
Fix for timezone conversion issues.
This commit is contained in:
parent
3384e2c51d
commit
4c5425f4d1
1 changed files with 5 additions and 2 deletions
|
@ -214,7 +214,10 @@ def get_network_timezone(network, network_dict):
|
||||||
|
|
||||||
try:
|
try:
|
||||||
if lib.dateutil.zoneinfo.ZONEINFOFILE is not None:
|
if lib.dateutil.zoneinfo.ZONEINFOFILE is not None:
|
||||||
n_t = tz.gettz(network_dict[network])
|
try:
|
||||||
|
n_t = tz.gettz(network_dict[network])
|
||||||
|
except:
|
||||||
|
return sb_timezone
|
||||||
if n_t is not None:
|
if n_t is not None:
|
||||||
return n_t
|
return n_t
|
||||||
else:
|
else:
|
||||||
|
@ -275,4 +278,4 @@ def test_timeformat(t):
|
||||||
if mo is None or len(mo.groups()) < 2:
|
if mo is None or len(mo.groups()) < 2:
|
||||||
return False
|
return False
|
||||||
else:
|
else:
|
||||||
return True
|
return True
|
||||||
|
|
Loading…
Reference in a new issue