rdcatchd/rdcatchd.cpp MySQL v5.7+ date/time changes

Not sure if the wild card resolver is strictly unsafe but added a check anyway.
This commit is contained in:
Wayne Merricks 2016-06-04 23:48:06 +01:00
parent 65be7b3f5f
commit 370fb3c0b2

View File

@ -2609,7 +2609,7 @@ void MainObject::ResolveErrorWildcards(CatchEvent *event,
rml->replace("%d",event->description());
rml->replace("%e",err_desc); // Error Description
rml->replace("%i",QString().sprintf("%u",event->id()));
rml->replace("%t",event->startTime().toString("hh:mm:ss"));
rml->replace("%t",RDCheckDateTime(event->startTime(),"hh:mm:ss"));
rml->replace("%y",RDRecording::typeString(event->type()));
switch(event->type()) {
case RDRecording::Recording: