DS 1307 RTC not keeping time after power reset

When I test the RTC with the following code, I see the time in the monitor.

#include <Wire.h>
#include <RTClib.h>
RTC_DS1307 RTC;

void setup () {
  Serial.begin(57600);
  Wire.begin();
  RTC.begin();
  RTC.adjust(DateTime(__DATE__, __TIME__));
  if (! RTC.isrunning())
    Serial.println("RTC is NOT running!");
}


byte lastSec=0;
void loop ()
{
  DateTime now = RTC.now();
  if(lastSec!=now.second())
  {lastSec=now.second();
    Serial.print(now.year(), DEC);
    Serial.print('/');
    Serial.print(now.month(), DEC);
    Serial.print('/');
    Serial.print(now.day(), DEC);
    Serial.print(' ');
    Serial.print(now.hour(), DEC);
    Serial.print(':');
    Serial.print(now.minute(), DEC);
    Serial.print(':');
    Serial.print(now.second(), DEC);
    Serial.println();
  }
}

So, I think the RTC is working.

When I disconnect the Nano from my Macbook, and re-power the Nano, I still see the time from the compiling. The time does not keeping forewords.

The voltage on the back is 3,6V
(left -, right +)

What else can I do, to test what is wrong?

Personally, I think my RTC is broken.

Initialise the RTC once , then comment-out that code and upload the new sketch.

TheMemberFormerlyKnownAsAWOL:
Initialise the RTC once , then comment-out that code and upload the new sketch.

I'm not sure if I understand you correctly (sorry)

Step 1, I upload the code
Step 2, I put // before the RTC.adjust(DateTime(DATE, TIME))
Step 3, I upload the code again

When I re-power the Nano I see this in the monitor:
RTC is NOT running!

I use a non rechargeable battery, can it be because of that?

Edit:
I'm going to remove the R4, R5 and D1. And Replace R6 with a wire.
stay tuned :wink:

Edit2:
That did the trick!!

So if you use a DS 1307 with a non rechargeable battery, you must adjust the print.
Nice to know!