RTC going 8.5 hours in future 5 mins after starting (consistent)

How can you use the same digital pins for both the LCD display
and for driving the relays. They must be separated.