bugfix

should fix shifts that cross midnight, though shifts that end on
midnight are still broken.