arduino real time clock code sd2403 problem

Hello there,
I have a real time clock SD 2403, I have to use it with Arduino Mega 2560 to keep track of time for my own project. I have downloaded the sample code from Wiki Doc which works pretty fine. The problem I am facing is that whenever I turn the Arduino off , the time restarts from the point which we set in program, which makes this thing useless for me. Meanwhile I have switched the small button on this clock. Can some on help on this issue. Thanks in advance.

Regards
Naseem Abbas.

What is a SD 2403? Is it battery backed up?
Why do you set the time in the program? Only need to do that once to get a real time into the RTC; comment it out and see if time is maintained properly on subsequent restarts.

the time restarts from the point which we set in program,

So set it once then remove the time setting code from the program or prompt the user to reset it/set it/whatever.

Seeing your code would be more than a little helpful.