The time of the diagnosis of gestational diabetes and perinatal complications