A. Check the app settings to see if you can customize the sleep tracking hours. Some apps allow you to set your own sleep schedule.
B. If customization is not available, manually track your sleep outside of the app during the hours it does not monitor.