Skip to content
Permalink
Browse files

detect sub-timezones properly (#1599)

Signed-off-by: Chris Warrick <kwpolska@gmail.com>
  • Loading branch information...
Kwpolska committed Jan 23, 2015
1 parent aea500e commit c223700accd17de877586719c5d360fcb25b5a7c
Showing with 4 additions and 2 deletions.
  1. +3 −1 CHANGES.txt
  2. +1 −1 nikola/packages/tzlocal/unix.py
@@ -10,12 +10,14 @@ Features
Bugfixes
--------

* Correctly read sub-timezones in ``nikola init`` (via Issue #1599)
* Fix zoneinfo reading in ``nikola init`` (Issue #1599)
* Fix ``.islink`` detection for galleries (via Issue #1536)
* Links to languages point to site root and not the blog (Issue #1008)
* Brand link is now language-specific (Issue #1573)
* Fixed compatibility with IPython 3.x (Issue #1581)
* Compilers mark tasks as out of date if compiler-specific options and plugins change (Issue #1523)
* Compilers mark tasks as out of date if compiler-specific options and
plugins change (Issue #1523)

New in v7.3.0
=============
@@ -30,7 +30,7 @@ def _get_localzone():
try:
# link will be something like /usr/share/zoneinfo/America/Los_Angeles.
link = os.readlink('/etc/localtime')
tz = link[link.rfind('/', 0, link.rfind('/')) + 1:]
tz = link.split('zoneinfo/')[-1]

if tz:
dateutil.tz.gettz(tz)

0 comments on commit c223700

Please sign in to comment.
You can’t perform that action at this time.