Navigation Menu

Skip to content

Commit

Permalink
Wrong “now”
Browse files Browse the repository at this point in the history
  • Loading branch information
da2x committed May 21, 2015
1 parent 7ee3ad9 commit 5b0293d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nikola/plugins/command/status.py
Expand Up @@ -28,7 +28,7 @@
import io
import os
from datetime import datetime
from dateutil.tz import gettz
from dateutil.tz import gettz, tzlocal
import time

from nikola import __version__
Expand Down Expand Up @@ -74,7 +74,7 @@ def _execute(self, command, args):
for fname in files:
fpath = os.path.join(root, fname)
fmodtime = datetime.fromtimestamp(os.stat(fpath).st_mtime)
if fmodtime > last_deploy:
if fmodtime.replace(tzinfo=tzlocal()) > last_deploy.replace(tzinfo=gettz("UTC")).astimezone(tz=tzlocal()):
fmod_since_deployment = fmod_since_deployment + 1

if fmod_since_deployment > 0:
Expand Down

0 comments on commit 5b0293d

Please sign in to comment.