Time-reversal symmetry for systems in a constant external magnetic field