Adding timespan to date time not working

To add the seconds you can use that function in C++, with FTimespan methods.

FDateTime UTestFuncLib::AddSeconds(FDateTime StartFrom, int TimeToAdd)
{
FTimespan DataTimeTemp = FTimespan::FromSeconds(TimeToAdd);

return  StartFrom + DataTimeTemp;

}