Magnetic fields and the solar constant