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

Commit

Permalink
Merge pull request #108 from satoved/patch-3
Browse files Browse the repository at this point in the history
Import DateTime
  • Loading branch information
joedawson authored Mar 6, 2019
2 parents cab3f37 + c63173d commit aaaa5de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Youtube.php
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ public function saveAccessTokenToDB($accessToken)
{
return DB::table('youtube_access_tokens')->insert([
'access_token' => json_encode($accessToken),
'created_at' => (new DateTime())->setTimestamp($accessToken['created']),
'created_at' => (new \DateTime())->setTimestamp($accessToken['created']),
]);
}

Expand Down

0 comments on commit aaaa5de

Please sign in to comment.