Skip to content
Snippets Groups Projects
Commit bbb70858 authored by BAHJI's avatar BAHJI
Browse files

Fix timeStamp error

parent a2ad9a5a
No related branches found
No related tags found
1 merge request!3[PIController] Add PIAxis commands and attributes
...@@ -184,8 +184,7 @@ void BoxController::compute_socket_messages_logs() ...@@ -184,8 +184,7 @@ void BoxController::compute_socket_messages_logs()
} }
yat::CurrentTime t; yat::CurrentTime t;
//We force date_format value to "%Y-%m-%dT%H:%M:%S" format otherwise we got uppper/lower case problems yat::String date_format = m_dict_historic_config.get("format").value_or("%Y-%m-%dT%H:%M:%S");
yat::String date_format = m_dict_historic_config.get("formate").value_or("%Y-%m-%dT%H:%M:%S");
std::stringstream socket_msg_timestamp(""); std::stringstream socket_msg_timestamp("");
if(is_timestamp == "TRUE") if(is_timestamp == "TRUE")
{ {
......
...@@ -198,7 +198,6 @@ void PIBox::init_device() ...@@ -198,7 +198,6 @@ void PIBox::init_device()
{ {
if(historicSocketMessagesConfig.size() > 0) if(historicSocketMessagesConfig.size() > 0)
{ {
std::transform(historicSocketMessagesConfig.begin(), historicSocketMessagesConfig.end(), historicSocketMessagesConfig.begin(), ::tolower);
dict_historic_config = yat::StringDictionary(historicSocketMessagesConfig,';', '='); dict_historic_config = yat::StringDictionary(historicSocketMessagesConfig,';', '=');
} }
if(dict_historic_config.size() != 3) if(dict_historic_config.size() != 3)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment