Cloth diapers smell like pee

me

Is it hard water? I live in Ca, next to Disneyland. My cloth diapers smell like pee and have this certain smell to them. I always dry in the sun. Any help?