Fix date/time formats broken with login fix

This commit is contained in:
Tony Corbett 2016-07-02 23:48:00 +01:00
parent fdbf97b1c6
commit c97f9d4801
2 changed files with 2 additions and 2 deletions

View file

@ -466,7 +466,7 @@ bool CDMRIPSC::writeConfig()
::memcpy(buffer + 0U, "RPTC", 4U);
::memcpy(buffer + 4U, m_id, 4U);
setlocale(LC_ALL,"C");
// setlocale(LC_ALL,"C");
::sprintf(buffer + 8U, "%-8.8s%09u%09u%02u%02u%08f%09f%03d%-20.20s%-19.19s%c%-124.124s%-40.40s%-40.40s", m_callsign.c_str(),
m_rxFrequency, m_txFrequency, m_power, m_colorCode, m_latitude, m_longitude, m_height, m_location.c_str(),
m_description.c_str(), slots, m_url.c_str(), m_version, software);

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