Update unix.py

pull/785/head
morpheus65535 5 years ago committed by GitHub
parent 6c3a0ba354
commit e7d7ad408e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -84,10 +84,11 @@ def _get_localzone(_root='/'):
if not etctz:
continue
tz = pytz.timezone(etctz.replace(' ', '_'))
if _root == '/':
# Disabling this offset valdation due to issue with some timezone: https://github.com/regebro/tzlocal/issues/80
# if _root == '/':
# We are using a file in etc to name the timezone.
# Verify that the timezone specified there is actually used:
utils.assert_tz_offset(tz)
# utils.assert_tz_offset(tz)
return tz
except IOError:

Loading…
Cancel
Save