It made me think, maybe its the sunlight that'd make Eevee evolve.
In some ways that would make more sense. But yes, if you're in a cave Eevee will still evolve into Espeon during the day.
During daytime, yes, EEVEE will evolve to ESPEON. But it's friendship must be high. Try giving it a Soothe Bell.