Making sure that the time of day range behaves appropriately