<?php
+
/**
* @file src/Model/Mail.php
*/
namespace Friendica\Model;
-use Friendica\App;
use Friendica\Core\L10n;
use Friendica\Core\System;
use Friendica\Core\Worker;
use Friendica\Database\DBM;
+use Friendica\Network\Probe;
+use Friendica\Util\Temporal;
use dba;
require_once 'include/dba.php';
$handles = $recip_handle . ';' . $sender_handle;
$fields = ['uid' => local_user(), 'guid' => $conv_guid, 'creator' => $sender_handle,
- 'created' => datetime_convert(), 'updated' => datetime_convert(),
+ 'created' => Temporal::convert(), 'updated' => Temporal::convert(),
'subject' => $subject, 'recips' => $handles];
if (dba::insert('conv', $fields)) {
$convid = dba::lastInsertId();
'replied' => 0,
'uri' => $uri,
'parent-uri' => $replyto,
- 'created' => datetime_convert()
+ 'created' => Temporal::convert()
]
);
$convid = null;
$fields = ['uid' => $recipient['uid'], 'guid' => $conv_guid, 'creator' => $sender_handle,
- 'created' => datetime_convert(), 'updated' => datetime_convert(),
+ 'created' => Temporal::convert(), 'updated' => Temporal::convert(),
'subject' => $subject, 'recips' => $handles];
if (dba::insert('conv', $fields)) {
$convid = dba::lastInsertId();
}
-
+
if (!$convid) {
logger('send message: conversation not found.');
return -4;
'replied' => 0,
'uri' => $uri,
'parent-uri' => $replyto,
- 'created' => datetime_convert(),
+ 'created' => Temporal::convert(),
'unknown' => 1
]
);