I noticed that Sunday is always shown as ??? Little bit googling said that timeinfo.tm_wday 0 is for sunday,
So this line
|
const char* WDAYS [] = { "???", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun" } ; |
Should be modified to
const char* WDAYS [] = { "Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat" } ;