Nonlinear oscillatory convection in the presence of a vertical magnetic field