It needs 12 hours of uninterrupted darkness to complete its flowering cycle.
Irregularities in this will cause it to revert to vegging, flower longer, herm, or a combination.