Go Down

Topic: Bug in DateTime Library (Read 705 times) previous topic - next topic

borisz

IMHO there is a bug in the Arduino DateTime library - namely in the DateStrings.cpp file.

The abbreviation for Thursday is not THR but THU!

So - the code in the library should be changed:

Line 49:

from:
char dayShortNames_P[] PROGMEM = "ErrSunMonTueWedThrFriSat";

to:
char dayShortNames_P[] PROGMEM = "ErrSunMonTueWedThuFriSat";

cheers
Boris

Jack Christensen

Agree, I made this change shortly after using the library for the first few times. "Thu" is the usual abbreviation in my part of the world, at least.
MCP79411/12 RTC ... "One Million Ohms" ATtiny kit ... available at http://www.tindie.com/stores/JChristensen/

robtillaart


wauw! using 3 chars were 2 would be unique :)   

char dayShortNames_P[] PROGMEM = "ErSuMoTuWeThFrSa";  // would also solve the OP issue ;)
Rob Tillaart

Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -
(Please do not PM for private consultancy)

Jack Christensen



wauw! using 3 chars were 2 would be unique :)   

char dayShortNames_P[] PROGMEM = "ErSuMoTuWeThFrSa";  // would also solve the OP issue ;)

Baha! And save memory!
MCP79411/12 RTC ... "One Million Ohms" ATtiny kit ... available at http://www.tindie.com/stores/JChristensen/

Go Up