Skip to content
Snippets Groups Projects
Commit ec48b0bd authored by al.schwinn's avatar al.schwinn
Browse files

[SIL-137] Set Date&Time is required

parent c0657848
No related branches found
No related tags found
No related merge requests found
......@@ -428,7 +428,17 @@ void silecsModule::setScalarDataInDeviceFromItem(Item *currentItem, std::string
}
case Date:
{
qDebug() << "Date";
if(reg->isScalar())
{
qDebug() << "Date";
double val;
if(!from_string<double>(val, stringValue, std::dec))
{
qDebug()<< "Conversion from string to Date failed";
throw new std::string("Output buffer value of "+plcName+" / "+deviceName+" / "+registerName+ " must be a Date (Epoch value)");
}
reg->setValDate(val);
}
break;
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment