Go Down

Topic: Bug in DateTime Library (Read 745 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.

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!

Go Up
 


Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy