Tomatoes do not need sunlight to ripen they need warmth. Tomatoes will ripen best in a dark, warm place. Putting them on a window ledge causes them to turn red on the outside, making them LOOK ripe, but the inside is not ripe yet.