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

Commit

Permalink
Import DateTime
Browse files Browse the repository at this point in the history
Ooops, sorry, I'm new to contributions...
  • Loading branch information
satoved authored Mar 6, 2019
1 parent cab3f37 commit c63173d
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 c63173d

Please sign in to comment.