Sorry I can't give you any definitive answer because I lack experience, but it seems that the plant would be confused if you threw it back into 18/6 or 24/0 while it was flowering. Even if you want the seeds and not the buds.

I'm sure someone will confirm or refute this.