Avocado trees change sexual roles twice a day. Researchers now trace that rhythm to a single flower gene found in at least 26 wild relatives.