Make info.xml valid
[grauphel.git] / lib / tokenstorage.php
index a184d8ef8ada9eda2ae586ec2d384f98c46a1025..8b266f1d5352df9cc6b495deeb6934512eb2c864 100644 (file)
@@ -31,7 +31,7 @@ class TokenStorage
      */
     protected $db;
 
      */
     protected $db;
 
-    public function __construct($urlGen)
+    public function __construct()
     {
         $this->db = \OC::$server->getDatabaseConnection();
     }
     {
         $this->db = \OC::$server->getDatabaseConnection();
     }
@@ -76,7 +76,7 @@ class TokenStorage
                 (string) $token->verifier,
                 (string) $token->callback,
                 (string) $token->client,
                 (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(
             'UPDATE `*PREFIX*grauphel_oauth_tokens`'
             . ' SET `token_lastuse` = ? WHERE `token_key` = ?',
             array(
-                (string) date('c'),
+                date('Y-m-d H:i:s'),
                 $tokenKey,
             )
         );
                 $tokenKey,
             )
         );