update the correct variable (not a shadowed variable from the parent function)

This commit is contained in:
Dustin J. Mitchell 2012-03-12 16:09:54 -07:00
parent aa5766d5af
commit 6469f28a7d
1 changed files with 1 additions and 1 deletions

View File

@ -230,7 +230,7 @@ class croniter(object):
if expanded[5][0] != '*':
diff_sec = nearest_diff_method(d.second, expanded[5], 60)
if diff_sec != None and diff_sec != 0:
dst += relativedelta(seconds = diff_sec)
d += relativedelta(seconds = diff_sec)
return True, d
else:
d += relativedelta(second = 0)