X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FModel%2FProcess.php;h=75d898065cdf71b9f6120ae22a9b388ed01bdd1f;hb=e409001dfbbe0582e922e9702426383bc2b643be;hp=8b7ce8d34ae80ee3b9536494a9e9e25502594e14;hpb=000e6457b4c460aa5a1850b812dc5e622a237685;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();