DS1302 RTC acting weird

Post links to the exact DS1302 module and library that you are using. Did you connect the grounds?

@Delta_G: most people use bit-banged I/O for that chip, such as in the library found here.