[SOLVED]ds1307 time getting reseted during power failure? ?

Hello experts
i just made RTC module using ds1307 but while testing it there is an issue my time get reset to 00 after power failure. is it require that i should connect 5v to 3.3v battery ?

You should put between 2V and 3.5V on pin 3, Vbat

JimboZA:
You should put between 2V and 3.5V on pin 3, Vbat

yes i did but there is a problem that some time my time got reset

is it possible due to old battery ?the one i am using now is 4 months old which is already removed from my computer motherboard ?

A battery can last for a decade or more, but you can also drain it in a day.
The only way to know is to measure it with a DMM.
Leo..

So i found out it was a battery i just removed it and put it back and done 8) SOLVED .