dayIndex bug on codeship