Depending on the system design, batteries can be recharged at night with other AC source of power including utility grid and diesel generators and not from the solar PV modules since there is no sunlight at night hence no solar output from the solar modules.