fix date computation
Merge redmine-review-bug-228-the-update-x-days-ago-compute-the-date-badly
reflect changes