What counts as a day is yours
Session follows the chart's own session template, so the day is whatever your instrument says it is. CustomWindow is a start and end hour in chart time instead — and an end earlier than the start wraps midnight, which is how you get an overnight-to-overnight day.