Skip to content
Permalink
Browse files
copy multipart timezone fix to darwin
  • Loading branch information
Kwpolska committed Feb 2, 2015
1 parent 49d67d5 commit d741c583e3755c315e7c0da3894addda558b3ddf
Showing 1 changed file with 1 addition and 1 deletion.
@@ -16,7 +16,7 @@ def _get_localzone():
if not tzname:
# link will be something like /usr/share/zoneinfo/America/Los_Angeles.
link = os.readlink("/etc/localtime")
tzname = link[link.rfind('/', 0, link.rfind('/')) + 1:]
tzname = link.split('zoneinfo/')[-1]
tzname = tzname.strip()
try:
# test the name

0 comments on commit d741c58

Please sign in to comment.