mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-08-19 21:03:21 -07:00
Update tzlocal to 2.1b1
This commit is contained in:
parent
2917b609c3
commit
0f02fab259
4 changed files with 28 additions and 9 deletions
|
@ -138,7 +138,7 @@ def _get_localzone(_root='/'):
|
|||
if os.path.exists(tzpath) and os.path.islink(tzpath):
|
||||
tzpath = os.path.realpath(tzpath)
|
||||
start = tzpath.find("/")+1
|
||||
while start is not 0:
|
||||
while start != 0:
|
||||
tzpath = tzpath[start:]
|
||||
try:
|
||||
return pytz.timezone(tzpath)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue