Merge remote-tracking branch 'upstream/master'

This commit is contained in:
Simon
2016-07-03 10:21:05 +01:00
2 changed files with 2 additions and 2 deletions

View File

@@ -752,7 +752,7 @@ void CHD44780::clockInt(unsigned int ms)
Time = localtime(&currentTime);
}
setlocale(LC_ALL,"");
setlocale(LC_TIME,"");
strftime(m_buffer1, 128, "%X", Time); // Time
strftime(m_buffer2, 128, "%x", Time); // Date

View File

@@ -246,7 +246,7 @@ void CNextion::clockInt(unsigned int ms)
else
Time = ::localtime(&currentTime);
setlocale(LC_ALL,"");
setlocale(LC_TIME,"");
char text[50U];
strftime(text, 50, "t2.txt=\"%x %X\"", Time);
sendCommand(text);