fixed previous day bug; closes #982
Merge pull request #989 from affektive/certs

fixed previous day bug; closes #982