mirror of
https://github.com/moparisthebest/SickRage
synced 2024-11-05 17:05:03 -05:00
Update network_timezones.py
Fix for timezone conversion issues.
This commit is contained in:
parent
3384e2c51d
commit
4c5425f4d1
@ -214,7 +214,10 @@ def get_network_timezone(network, network_dict):
|
||||
|
||||
try:
|
||||
if lib.dateutil.zoneinfo.ZONEINFOFILE is not None:
|
||||
try:
|
||||
n_t = tz.gettz(network_dict[network])
|
||||
except:
|
||||
return sb_timezone
|
||||
if n_t is not None:
|
||||
return n_t
|
||||
else:
|
||||
|
Loading…
Reference in New Issue
Block a user