Fix global stats: compute for previous day (bug 1088639)
Merge pull request #352 from magopian/1088639-global-stats-broken

Fix global stats: compute for previous day (bug 1088639)