X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fwall_attach.php;h=30bc9641f7893b89fcbf21a65d68ce1257f64de4;hb=0454d0a670e051e8519e9a4220606f83d1408214;hp=1ad435c45df19692305c74759ed709c98a8eac39;hpb=dc366bf1f7b5b7b0fc1c1a86772783074b301993;p=friendica.git diff --git a/mod/wall_attach.php b/mod/wall_attach.php index 1ad435c45d..30bc9641f7 100644 --- a/mod/wall_attach.php +++ b/mod/wall_attach.php @@ -7,8 +7,8 @@ use Friendica\App; use Friendica\Core\Config; use Friendica\Core\L10n; use Friendica\Database\DBM; +use Friendica\Util\DateTimeFormat; use Friendica\Util\Mimetype; -use Friendica\Util\Temporal; require_once 'include/datetime.php'; @@ -124,7 +124,7 @@ function wall_attach_post(App $a) { $filedata = @file_get_contents($src); $mimetype = Mimetype::getContentType($filename); $hash = get_guid(64); - $created = Temporal::convert(); + $created = DateTimeFormat::utcNow(); $fields = ['uid' => $page_owner_uid, 'hash' => $hash, 'filename' => $filename, 'filetype' => $mimetype, 'filesize' => $filesize, 'data' => $filedata, 'created' => $created, 'edited' => $created,