The switch back and forth can kind of mess them up, but they eventually straighten out. I did it accidently once and they went through some weird growth forms before returning to normal.
Otherwise, like RIKNSTEIN said at least a week, commonly 2 weeks, even longer.
Since you tricked them once they may not trust you and be hesitant to flower. Just Kidding.