Broke fast whilst cloudy thinking sun had set

If the sky was cloudy and the mu.adhdhin called the adhaan and [then] some of the people broke their fast based upon [hearing] the adhaan, and after breaking the fast it became apparent that the sun had not set, what is the ruling regarding the fast in this situation?