]> git.mxchange.org Git - friendica.git/commitdiff
Replace forgotten datetime_convert() instances
authorHypolite Petovan <mrpetovan@gmail.com>
Sun, 4 Feb 2018 01:44:19 +0000 (20:44 -0500)
committerHypolite Petovan <mrpetovan@gmail.com>
Sun, 4 Feb 2018 01:47:37 +0000 (20:47 -0500)
src/Model/Contact.php
src/Util/DateTimeFormat.php

index e57bcd99d42a02ede71350f2bad9cff6734e38f9..1d31c6cb5b38f5a50a547f2d54b1e2fcb4aeb341 100644 (file)
@@ -1388,7 +1388,7 @@ class Contact extends BaseObject
                                `blocked`, `readonly`, `pending`, `writable`)
                                VALUES (%d, '%s', '%s', '%s', '%s', '%s', '%s', '%s', %d, 0, 0, 1, 1)",
                                intval($importer['uid']),
-                               dbesc(datetime_convert()),
+                               dbesc(DateTimeFormat::utcNow()),
                                dbesc($url),
                                dbesc(normalise_link($url)),
                                dbesc($name),
@@ -1418,7 +1418,7 @@ class Contact extends BaseObject
                                if (is_array($contact_record)) {
                                        dba::insert('intro', ['uid' => $importer['uid'], 'contact-id' => $contact_record['id'],
                                                                'blocked' => false, 'knowyou' => false,
-                                                               'hash' => $hash, 'datetime' => datetime_convert()]);
+                                                               'hash' => $hash, 'datetime' => DateTimeFormat::utcNow()]);
                                }
 
                                Group::addMember(User::getDefaultGroup($importer['uid'], $contact_record["network"]), $contact_record['id']);
index 10810da0342798193361093624edf4b5f4e9ff6e..b039ff80a170c4fc504e9f6ac95420ceff7b218c 100644 (file)
@@ -122,7 +122,7 @@ class DateTimeFormat
                try {
                        $d = new DateTime($s, $from_obj);
                } catch (Exception $e) {
-                       logger('datetime_convert: exception: ' . $e->getMessage());
+                       logger('DateTimeFormat::convert: exception: ' . $e->getMessage());
                        $d = new DateTime('now', $from_obj);
                }