Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
copy multipart timezone fix to darwin
  • Loading branch information
Kwpolska committed Feb 2, 2015
1 parent 49d67d5 commit d741c58
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nikola/packages/tzlocal/darwin.py
Expand Up @@ -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
Expand Down

0 comments on commit d741c58

Please sign in to comment.