TinyRTC V1 + Arduino Mega

I'm trying to run the V1 TinyRTC using an Arduino Mega 2560 and when I try to run the following code

#include <Wire.h>
#include "RTClib.h"
 
RTC_DS1307 RTC;
 
void setup () {
    Serial.begin(9600);
    Wire.begin();
    RTC.begin();
    //RTC.sqw(1);     //0 Led off - 1 Freq 1Hz - 2 Freq 4096kHz - 3 Freq 8192kHz - 4 Freq 32768kHz
  if (! RTC.isrunning()) {
    Serial.println("RTC is NOT running!");
    // following line sets the RTC to the date & time this sketch was compiled
    RTC.adjust(DateTime(__DATE__, __TIME__));
  }
}
 
void loop () {
    DateTime now = RTC.now();
 
    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();
 
    Serial.print(" since midnight 1/1/1970 = ");
    Serial.print(now.unixtime());
    Serial.print("s = ");
    Serial.print(now.unixtime() / 86400L);
    Serial.println("d");
 
    // calculate a date which is 7 days and 30 seconds into the future
    DateTime future (now.unixtime() + 7 * 86400L + 30);
 
    Serial.print(" now + 7d + 30s: ");
    Serial.print(future.year(), DEC);
    Serial.print('/');
    Serial.print(future.month(), DEC);
    Serial.print('/');
    Serial.print(future.day(), DEC);
    Serial.print(' ');
    Serial.print(future.hour(), DEC);
    Serial.print(':');
    Serial.print(future.minute(), DEC);
    Serial.print(':');
    Serial.print(future.second(), DEC);
    Serial.println();
 
    Serial.println();
    delay(3000);
}

And shows me

RTC is NOT running!
2165/165/165 165:165:85
since midnight 1/1/1970 = 2086449489s = 24148d
now + 7d + 30s: 2036/2/19 17:18:39

2165/165/165 165:165:85
since midnight 1/1/1970 = 2086449489s = 24148d
now + 7d + 30s: 2036/2/19 17:18:39

2165/165/165 165:165:85
since midnight 1/1/1970 = 2086449489s = 24148d
now + 7d + 30s: 2036/2/19 17:18:39

What is happening?

What is happening?

Not what you want would be my guess. Am I right?

The psychic we've hired starts the 12th of never. I'm sure he'll be able to determine how you've connected the RTC to the Mega. If you need help before then, I'm sure you'll think of something to do. I have confidence in you.

Sorry, I Using the Attached Schema

401_RTC_DS1307_08.gif

that's pin 20, 21
SDA is pin 20 on the arduino
SCL is pin 21 on the arduino
these are after the AREF pin
Connect your RTC to them and try again

I just used your code and it worked fine on my Arduino and RTC, no errors!
you could try it on another Arduino to see if maybe it is your RTC.