Answer:
Riolu evolves by how happy it is with its trainer, it needs to have maximum happiness in order to evolve into a Lucario.
When you get it's happiness up and level it up during the morning or day
___________________________________________________________________
nu uh my riolu evolved at night and it was level 30 so at night too :] HA