From 55aaa5401a0585d2e6dc5ebf4d0d3d658d8aabd4 Mon Sep 17 00:00:00 2001 From: Christian Weiske Date: Tue, 10 May 2016 07:37:05 +0200 Subject: [PATCH 1/1] Fix #41: Use correct SQL datetime format for tokens --- lib/tokenstorage.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/tokenstorage.php b/lib/tokenstorage.php index 94526b1..8b266f1 100644 --- a/lib/tokenstorage.php +++ b/lib/tokenstorage.php @@ -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, ) ); -- 2.30.2