diff --git a/source/ubl-settings-datetime.cc b/source/ubl-settings-datetime.cc index 0ab6f3e..d398b75 100644 --- a/source/ubl-settings-datetime.cc +++ b/source/ubl-settings-datetime.cc @@ -1032,8 +1032,8 @@ struct MainWindow::Result MainWindow::wrapper_call(string cmd) { if ((response.find("(null)") == std::string::npos) && (response.length() != 0 )) { if (response.find("=") != std::string::npos) { if (response.find("\n") != std::string::npos) { - response = response.substr(response.find("=")+1,response.length()); - response = response.substr(0,response.find("\n")); + response = response.substr(response.find("=")+2,response.length()); + response = response.substr(0,response.find("\n")-1); obj_result.response = response; obj_result.error = 0; }