Skip to content
Permalink
Browse files

Wrong “now”

  • Loading branch information
da2x committed May 21, 2015
1 parent 7ee3ad9 commit 5b0293def0aea924eb825d26bf26b40003af162c
Showing with 2 additions and 2 deletions.
  1. +2 −2 nikola/plugins/command/status.py
@@ -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__
@@ -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:

0 comments on commit 5b0293d

Please sign in to comment.