The first thing I notice is that both of your if statements are using the same argument. For a level script like this, you'll want to be comparing relative to the current time; turn lights on if it's after 6 but before 18, leave them off otherwise. If my understanding is correct, this script just turns them on if it's 6 AM, turns them off if it's 6 PM, and does nothing at all if the player enters the map at any other time.
I'm not terribly experienced with OW scripting or real-time clocks though, so I could be misinterpreting this. You might be better off asking someone else for help.