Is it correct to say when midnight was rang in?

No. The correct way to say it would be, "when midnight was rung in."