Using Arduino 1.6.5 with Uno board I have set the time (Time library) and am able to see that it is set properly. I am trying to format a date/time string with the following code:
sprintf(dateString, "%s %s %d, %d ", dayShortStr(weekday()), monthShortStr(month()), day(), year());
but the output from Serial.println(dateString);
Fri Fri 25, 2015
If I change the order of dayShortStr and monthShortStr the output becomes
Dec Dec 25, 2015
Anyone have a hint as to why this is happening?