Same time frame as the biblical flood
It didn't happen all in one week, year, or millennium. But, starting 20,000 years ago, generation after generation found the village its grandparents built washed by waves, and had to move higher and build again. Usually other people already lived higher up, so conflicts arose. Australian oral history still records compacts settling those.
After the rise finally leveled off 8000 years ago, 120 meters upslope and often hundreds of miles inland, the tales came unmoored from personal experience, and shifted gradually, over more millennia, to what we know today.
The whole Persian Gulf had filled in, and the South China Sea, a million square miles below what are now Indonesian islands ("Sundaland") between and around Australia / New Guinea ("Sahul"), off India and Japan, and between Ireland, Britannia and Europe ("Doggerland") were forever gone.
The oldest civilizations we know are uphill from a few of those places, and the oldest rock art we know was painted in the mountains offshore of what was, 40,000 years ago, Sundaland.
Possibly what triggered the beginnings of civilization was the continuous need to adapt to new circumstances, and habit of discovering a new way of life among strangers, generation after generation, over the millennia from 20,000 years ago to 8000 years ago, and then ending, leaving uninterrupted stability.
The Younger Dryas cataclysm 12,000 years ago that wiped out most big animals in North America and darkened the whole world for years after must have had some impact. Gobekli Tepe, the oldest documented temple, was built after.
But Gunung Padang on Java was in use before the water ever started to rise. There were no ice ages there.