Time reversal of a wave packet with temporal modulation of gauge potential