SOLID advice!if it is in a pot take it indoors after the best 12 hours of sun per day.
if it's in the ground, unless you can make a cover big enough to cover it up for 12 hours you are pretty much stuck.
there are additives that can make your plants ripen quicker but they only appear to make it ripe, nothing beats time.
sometimes a large spike of pk can induce flowering but it can also hurt your yield.