Welcome to the community.
This blueprint will turn OFF the light when the door closes and it doesn’t have a time condition to run only between 5pm and 6:30am.
You could look at my Sensor Light blueprint as that has a time condition and it will keep the light ON for X amount of time when the door closes. The only thing is if you leave the door open the light will remain ON. To resolve this you may consider using a motion sensor rather than a door sensor, that way the light will turn OFF. If you would like to keep your door sensor and there is a possibility the door is left open hence the light staying ON then you may consider creating a template sensor that when the door opens it turns ON but then has a auto OFF just encase you leave the door open.
Blacky