This is my slightly updated version (from the example) of the RTC string generator. The original version generates odd times like 12:2:9 instead of 12:02:09, this fixes that:
void clockUpdate()
{
if(minute() < 10 && second() < 10)
{
currentTime = String(hour()) + ":0" + minute() + ":0" + second();
}
else if(minute() < 10)
{
currentTime = String(hour()) + ":0" + minute() + ":" + second();
}
else if(second() < 10)
{
currentTime = String(hour()) + ":" + minute() + ":0" + second();
}
else
{
currentTime = String(hour()) + ":" + minute() + ":" + second();
}
currentDate = String(month()) + "/" + day();
}
Super simple fix, but one that I had to make from the example