Auto Attendance: Certain Shifts being skipped from marking attendance

This bug was originally posted on the issue tracker on GitHub.

I’m creating this post here to be able to get help from the forums as well.