Problem with RTC and time library

It makes it easier for us if you post your code. With the cursor in the Arduino IDE, do Ctrl-T to format it in a standard way, then use the sharp sign ('#') and copy your code between the two code tags.