Skip to content
This repository has been archived by the owner on Aug 27, 2023. It is now read-only.

Commit

Permalink
Remove Carbon call
Browse files Browse the repository at this point in the history
  • Loading branch information
satoved authored Mar 5, 2019
1 parent 955406e commit 8856a99
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Youtube.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
namespace Dawson\Youtube;

use Exception;
use Carbon\Carbon;
use Google_Client;
use Google_Service_YouTube;
use Illuminate\Support\Facades\DB;
Expand Down Expand Up @@ -364,7 +363,7 @@ public function saveAccessTokenToDB($accessToken)
{
return DB::table('youtube_access_tokens')->insert([
'access_token' => json_encode($accessToken),
'created_at' => Carbon::createFromTimestamp($accessToken['created'])
'created_at' => (new DateTime())->setTimestamp($accessToken['created']),
]);
}

Expand Down

0 comments on commit 8856a99

Please sign in to comment.