From f10da0019f9ead4dcf5321b88076f49bbc3f27e2 Mon Sep 17 00:00:00 2001 From: Peter Deltchev Date: Fri, 30 Dec 2016 02:59:34 -0800 Subject: [PATCH] #25: Patched up date parsing in the OAuth integration. --- app/Models/User.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Models/User.php b/app/Models/User.php index 9721a7ac..54e7ebd9 100644 --- a/app/Models/User.php +++ b/app/Models/User.php @@ -169,7 +169,7 @@ class User extends Model implements AuthenticatableContract, CanResetPasswordCon return new AccessToken([ 'access_token' => $accessTokenRecord->access_token, 'refresh_token' => $accessTokenRecord->refresh_token, - 'expires' => Carbon::createFromFormat('Y-m-d H:i:s', $accessTokenRecord->expires)->timestamp, + 'expires' => Carbon::parse($accessTokenRecord->expires)->timestamp, 'resource_owner_id' => $accessTokenRecord->external_user_id, ]); }