RTC and millis

Unless you omitted the pull-up resistors on the I2C bus the problem
is almost certainly in your code, not a hardware issue. As always
post all your code....