fix date in route query based on previous date
Merge branch 'master' into heroku