I haven't done Poke radar in a while, but from what I remember from using cute charm, it seemed that gender was determined when the patch was generated, since I got the lower gender ratio with my Cute Charm Lopunny at the front of my party versus when I switched it to the front after the patch generated.