#25: Patched up date parsing in the OAuth integration.

This commit is contained in:
Peter Deltchev 2016-12-30 02:59:34 -08:00
parent d2193954a8
commit f10da0019f

View file

@ -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,
]);
}