Fluctuation relations for systems in a constant magnetic field