This is actually complex since some worklogs are started at 00:00:00.
The sprint dates are manipulated so that it starts at 00:00:00 the day of the planning and finishes at 23:59:59 the day before the demo.
This will miss some legitimate worklogs but will be consistent with the view during the retro when all time has not been logged yet.
Demo/retro/planning issue must be part of the next sprint and worklogs put there.
This is actually complex since some worklogs are started at 00:00:00. The sprint dates are manipulated so that it starts at 00:00:00 the day of the planning and finishes at 23:59:59 the day before the demo. This will miss some legitimate worklogs but will be consistent with the view during the retro when all time has not been logged yet. Demo/retro/planning issue must be part of the next sprint and worklogs put there.