Fixed an issue where the 31th days of months that contained work logs

Fixed unresolved constraint issue.