Collin80:
It seems to happen at this line:RTC_clock rtc_clock(XTAL);
You're saying that the delay is waiting for the crystal to settle? Shouldn't using the crystal take less than 2 seconds?
In my words NOOOOOOOO!!!
The internal RC is extremly unstable about counting on time he is too slow. You will loose time.
May use the Teensy 3 who sets faster up in combination with the time lib