interesting. to me it's sounds like a an delay offset in the Zero Crossing. Done by the transformer AND the 470uF cap.

Can be solved in software.

Give me the transformer information, part #, voltage etc. I will work on this.