X-Git-Url: https://git.cweiske.de/grauphel.git/blobdiff_plain/9501f181f621e9023a9cb27cbbc85afb2743eeca..143ea16d7af607cec6ce180c30f4645f94189113:/lib/tokenstorage.php diff --git a/lib/tokenstorage.php b/lib/tokenstorage.php index a184d8e..8b266f1 100644 --- a/lib/tokenstorage.php +++ b/lib/tokenstorage.php @@ -31,7 +31,7 @@ class TokenStorage */ protected $db; - public function __construct($urlGen) + public function __construct() { $this->db = \OC::$server->getDatabaseConnection(); } @@ -76,7 +76,7 @@ class TokenStorage (string) $token->verifier, (string) $token->callback, (string) $token->client, - (string) date('c'), + date('Y-m-d H:i:s'), ) ); } @@ -173,7 +173,7 @@ class TokenStorage 'UPDATE `*PREFIX*grauphel_oauth_tokens`' . ' SET `token_lastuse` = ? WHERE `token_key` = ?', array( - (string) date('c'), + date('Y-m-d H:i:s'), $tokenKey, ) );