Alot of traffic lights are all controlled centrally, Its pretty rare for city lights to be on simpler timers / sensors now.
Do you ever notice when a set of lights is replaced with temporary lights the road turns into chaos, if it was as simple as a timer they could just program them to match the lights they replaced.