Do the following two sentences have the same meaning?
When the butterflies were exposed to constant light , they flew directly towards the sun , presumably because they no longer had any sense of time .
And when butterflies were exposed to constant light , they flew directly toward the sun , apparently having lost their sense of time .

Possible answers: -- no. -- yes.
The answer is:
yes