ds 1307 + arduino lose time

HI
i have several days since i started working on a project uses RTC and shows the time on on 16x2 lcd screen and i used the circuit diagram below:

i used the rtclib master lib , i set the time using the the adjust function for the first compilation , by powering the arduino by USB the time works great .
and for the second compilation i just use the now function to get time , and again by powering the arduino by USB the time works great ..
but then when i remove the USB , and try to power the arduino through external power source(an ac/dc 5v 1a) the lcd screen gives me this:

Time: 165:165:85
date:165/165/2165

so my question why is this 165s? and where is the problem in all of this ?

thank for reading
regards

Hi, The 165's are 'chip not running'...
Where are you connecting power to the Arduino?

Thank you for your response terryking228
i am connecting the power to the arduino through the DC power jack by 5V 1A AC/DC adapter .

The DC socket needs a minimum of 7volts.
Leo..

Thank you Wawa , it is working now , i just powered the arduino by 9v than it worked fine :slight_smile: .

[solved] ... in subject please !