*/
protected $db;
- public function __construct($urlGen)
+ public function __construct()
{
$this->db = \OC::$server->getDatabaseConnection();
}
(string) $token->verifier,
(string) $token->callback,
(string) $token->client,
- (string) date('c'),
+ date('Y-m-d H:i:s'),
)
);
}
'UPDATE `*PREFIX*grauphel_oauth_tokens`'
. ' SET `token_lastuse` = ? WHERE `token_key` = ?',
array(
- (string) date('c'),
+ date('Y-m-d H:i:s'),
$tokenKey,
)
);