git.cweiske.de
/
grauphel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c6d00f2
)
Fix #41: Use correct SQL datetime format for tokens
author
Christian Weiske
<
[email protected]
>
Tue, 10 May 2016 05:37:05 +0000
(07:37 +0200)
committer
Christian Weiske
<
[email protected]
>
Tue, 10 May 2016 05:37:05 +0000
(07:37 +0200)
lib/tokenstorage.php
patch
|
blob
|
history
diff --git
a/lib/tokenstorage.php
b/lib/tokenstorage.php
index 94526b16fb497a1dc1ec014d99060875b3774207..8b266f1d5352df9cc6b495deeb6934512eb2c864 100644
(file)
--- 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,
)
);