1
0
Fork 0
mirror of https://github.com/morpheus65535/bazarr synced 2025-03-01 17:15:44 +00:00

Update unix.py

This commit is contained in:
Flaxee 2019-12-28 09:27:32 +01:00 committed by GitHub
parent 376d57e4e7
commit 7bcea72053
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -138,7 +138,7 @@ def _get_localzone(_root='/'):
if os.path.exists(tzpath) and os.path.islink(tzpath): if os.path.exists(tzpath) and os.path.islink(tzpath):
tzpath = os.path.realpath(tzpath) tzpath = os.path.realpath(tzpath)
start = tzpath.find("/")+1 start = tzpath.find("/")+1
while start is not 0: while start != 0:
tzpath = tzpath[start:] tzpath = tzpath[start:]
try: try:
return pytz.timezone(tzpath) return pytz.timezone(tzpath)