RTC DS1307

Hello there, been using a DS1302 with Arduino Uno with ready made online code and works fine with manual setting of time/date etc.
I have switched to a DS3231/1307 with the following code, which seems a ‘standard’ code for this chipset and is used in the example code in the Arduino IDE.

I understand the line rtc.adjust(DateTime(F(DATE), F(TIME))); should set the current time and date from my pc when uploaded but the time displayed in the Serial Monitor is somewhere in 2000 with a wrong time.
I get exactly the same output even if I comment out the rtc.adjust line, so am I misunderstanding how that line of code should be implemented.
This code is demonstrated working many times in online resources but just doesn’t work for me. I have installed and run on two different laptops with exactly the same results, so have reached the point where I would appreciate some advice or suggestions as to why the current date/time is not being set when uploading this code.
Thankyou.

#include <RTClib.h>

// Date and time functions using a DS1307 RTC connected via I2C and Wire lib
#include <Wire.h>
#include “RTClib.h”

RTC_DS1307 rtc;

char daysOfTheWeek[7][12] = {“Sunday”, “Monday”, “Tuesday”, “Wednesday”, “Thursday”, “Friday”, “Saturday”};

void setup () {
while (!Serial); // for Leonardo/Micro/Zero

Serial.begin(9600);
if (! rtc.begin()) {
Serial.println(“Couldn’t find RTC”);
while (1);
}

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(F(DATE), F(TIME)));
// This line sets the RTC with an explicit date & time, for example to set
// January 21, 2014 at 3am you would call:
// rtc.adjust(DateTime(2014, 1, 21, 3, 0, 0));
}
}

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(daysOfTheWeek[now.dayOfTheWeek()]);
Serial.print(") ");
Serial.print(now.hour(), DEC);
Serial.print(’:’);
Serial.print(now.minute(), DEC);
Serial.print(’:’);
Serial.print(now.second(), DEC);
Serial.println();

delay(1000);

}

Apologies, since posting this I uploaded the example sketch for the DS3231 and it works fine, I was assured by online posts that the 307/3231 were the same but clearly there is some difference, anyway all sorted thanks