Adaptation of sorghum: characterisation of genotypic flowering responses to temperature and photoperiod