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