Description:
I’ve noticed that naps taken towards the end of the day are not being included in the following sleep cycle in the app. Currently, the app seems to count naps towards the previous night's sleep, regardless of the time they occur.
Steps to Reproduce:
  1. Take a nap late in the day, e.g., after 6 PM.
  2. Check the sleep data for the following night in the Health app.
Expected Behavior:
Naps taken after a certain time (for example, 6 PM) should be counted towards the sleep data for the following night, not the previous night.
Actual Behavior:
Naps taken late in the day are counted as part of the previous night's sleep.
Additional Information:
If this behavior is intentional, it would be helpful to understand the reasoning behind it. However, if this is a bug, it would improve accuracy if naps taken after a specific time, such as 6 PM, were counted towards the following night's sleep data.