Stacking two shields with different communication protocols

The SD card uses SPI and the RTC uses I2C. There is no "changing it" unless you find a different RTC that uses SPI.

Furthermore, there is no overlap between SPI and I2C in terms of pins usage.