Actually, in Sumer, they used an intercalary month every three years or so, much like the leap year in the Gregorian Calendar.
https://en.wikipedia.org/wiki/Sumer