See Pineapple Weed

I am not sure I have this flower identified correctly. My picture matches several online pictures, but the wiki pics must be taken after the petals fall off.