]> git.mxchange.org Git - friendica.git/blobdiff - src/Network/FKOAuth1.php
Move Temporal::convert() to DateTimeFormat::convert()
[friendica.git] / src / Network / FKOAuth1.php
index f7f8f164173803456730e82323b80f07f97b9f90..8af267be3de557ab082220e14aeed30403b972c8 100644 (file)
@@ -9,7 +9,7 @@ use Friendica\Core\PConfig;
 use Friendica\Core\System;
 use Friendica\Database\DBM;
 use Friendica\Network\FKOAuthDataStore;
-use Friendica\Util\Temporal;
+use Friendica\Util\DateTimeFormat;
 use dba;
 use OAuthServer;
 use OAuthSignatureMethod_HMAC_SHA1;
@@ -68,7 +68,7 @@ class FKOAuth1 extends OAuthServer
                        $_SESSION['cid'] = $a->cid;
                }
 
-               dba::update('user', ['login_date' => Temporal::utcNow()], ['uid' => $_SESSION['uid']]);
+               dba::update('user', ['login_date' => DateTimeFormat::utcNow()], ['uid' => $_SESSION['uid']]);
 
                Addon::callHooks('logged_in', $a->user);
        }