diff --git a/HD44780.cpp b/HD44780.cpp index c900b33..23f44c4 100644 --- a/HD44780.cpp +++ b/HD44780.cpp @@ -752,7 +752,7 @@ void CHD44780::clockInt(unsigned int ms) Time = localtime(¤tTime); } - setlocale(LC_ALL,""); + setlocale(LC_TIME,""); strftime(m_buffer1, 128, "%X", Time); // Time strftime(m_buffer2, 128, "%x", Time); // Date diff --git a/Nextion.cpp b/Nextion.cpp index 4d74c38..3a36803 100644 --- a/Nextion.cpp +++ b/Nextion.cpp @@ -246,7 +246,7 @@ void CNextion::clockInt(unsigned int ms) else Time = ::localtime(¤tTime); - setlocale(LC_ALL,""); + setlocale(LC_TIME,""); char text[50U]; strftime(text, 50, "t2.txt=\"%x %X\"", Time); sendCommand(text);