Adafruit Datalogging Shield - Setting the real time SOLVED

Hi-

I'm working on a project that involve logging the weight of MAP/oxygen fuel tanks over time, with that data I am to calculate the flow rates.

I'm using Adafruit datalogger shield. Adafruit datalogging shield. I am having trouble setting the time of the RTC. Following instructions from the link above, I used the example code pcf8523 to try to set the time. I made sure the chip select is set to 10, which is the correct pin for this model datalogger.

I changed removed the // in the code so it looks like this: code

When I go the the serial monitor, I get an output that looks like this: serial monitor

Could someone help me out here? Is there other parts of the I need to modify?

EDIT - found out I am using an older model of this datalogger, instead of using the pcf8534 example code, I used the ds1307 example code and it worked perfectly

Is a battery installed correctly?