File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -200,8 +200,8 @@ ocpp::types::ConfigurationStatus OcppConfig::setConfiguration(const std::string&
200200 std::size_t key_is_interval = key.find (" Interval" );
201201 if (key_is_interval != std::string::npos)
202202 {
203- std::size_t value_is_negative = key .find (" -" );
204- if (value_is_negative)
203+ std::size_t value_is_negative = value .find (" -" );
204+ if (value_is_negative != std::string::npos )
205205 {
206206 ret = ConfigurationStatus::Rejected;
207207 }
Original file line number Diff line number Diff line change @@ -231,6 +231,7 @@ void RpcBase::start()
231231 {
232232 // Start reception thread
233233 m_requests_queue.setEnable (true );
234+ m_results_queue.setEnable (true );
234235 m_rx_thread = new std::thread (std::bind (&RpcBase::rxThread, this ));
235236 }
236237 }
Original file line number Diff line number Diff line change @@ -84,7 +84,6 @@ class DateTime
8484 m_datetime = _mkgmtime (&t);
8585#else // _MSC_VER
8686 m_datetime = std::mktime (&t);
87- m_datetime += t.tm_gmtoff ;
8887 m_datetime -= (t.tm_isdst * 3600 );
8988#endif // _MSC_VER
9089 ret = true ;
@@ -179,7 +178,7 @@ class DateTime
179178#ifdef _MSC_VER
180179 gmtime_s (&t, &m_datetime);
181180#else // _MSC_VER
182- gmtime_r (&m_datetime, &t);
181+ localtime_r (&m_datetime, &t);
183182#endif // _MSC_VER
184183 ss << std::put_time (&t, " %Y-%m-%dT%TZ" );
185184 return ss.str ();
You can’t perform that action at this time.
0 commit comments