X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FModel%2FProcess.php;h=75d898065cdf71b9f6120ae22a9b388ed01bdd1f;hb=b333c7ae2ef38b54a837f3443b76cb02cedbbfd1;hp=8b7ce8d34ae80ee3b9536494a9e9e25502594e14;hpb=ab90bd2dd1b76c33d399f7032c4ab10b6f3bd929;p=friendica.git diff --git a/src/Model/Process.php b/src/Model/Process.php index 8b7ce8d34a..75d898065c 100644 --- a/src/Model/Process.php +++ b/src/Model/Process.php @@ -5,10 +5,10 @@ namespace Friendica\Model; use Friendica\BaseObject; +use Friendica\Util\DateTimeFormat; use dba; require_once 'include/dba.php'; -require_once 'include/datetime.php'; /** * @brief functions for interacting with a process @@ -33,7 +33,7 @@ class Process extends BaseObject dba::transaction(); if (!dba::exists('process', ['pid' => $pid])) { - $return = dba::insert('process', ['pid' => $pid, 'command' => $command, 'created' => datetime_convert()]); + $return = dba::insert('process', ['pid' => $pid, 'command' => $command, 'created' => DateTimeFormat::utcNow()]); } dba::commit();