No it won't harm the fish if the lights are on occassionally all day. It may stress them if the lights are on 24 hours a day every day. I don't turn my lights off at night, because that is when I am home. I have timer that turns the lights off at about 4:00 am and then on again at about 4:00 pm. The fish get total darkness for only a few hours during the summer (more during the winter). They then get a lot of "dusk" time as the room starts to get brighter in the morning, and eventually when I open the shades. What is important for the fish is a schedule, with consistant lights on and lights off time. I don't believe the fish need total darkenss, but they do need a period of near darkness to reduce stress and feel more comfortable.
\Dan