FIX: Align properly days with MySQL bucketing. Closes #1219