And when butterflies were exposed to constant light , they flew directly toward the sun , apparently having lost their sense of time .