For running J!5.1 you must https://fabrikar.com/forums/index.php?wiki/update-from-github/ or include the new file manually https://fabrikar.com/forums/index.php?threads/joomla-5-1-and-fabrik-cannot-find-files-error.54473/post-285151 See also Announcements
Please see our announcement here.
public function save($data)
{
$date = Factory::getDate();
if (FArrayHelper::getValue($data, 'lastrun') == '')
{
$data['lastrun'] = $date->toSql();
}
else
{
$timeZone = new \DateTimeZone($this->config->get('offset'));
$data['lastrun'] = Factory::getDate($data['lastrun'], $timeZone)->toSql(false);
}
//New record
if (empty($data['id']) )
{
$data['created'] = $date->toSql();
$data['created_by'] = $this->user->get('id');
$data['created_by_alias'] = $this->user->get('username');
}
$data['params'] = json_encode($data['params']);
$data['modified'] = $date->toSql();
$data['modified_by'] = $this->user->get('id');
return parent::save($data);
}