Skip to content

Commit

Permalink
Merge pull request #19 from sylfabre/patch-1
Browse files Browse the repository at this point in the history
Unique name is not very unique!
  • Loading branch information
DaanDeSmedt authored Mar 29, 2022
2 parents 7384929 + 9cf5a7d commit 2e76bc9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/HeadlessChrome.php
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ public function getArguments()
*/
private function getUniqueName($extension)
{
return md5(date('Y-m-d H:i:s:u')) . '.' . $extension;
return md5((new \DateTime())->format('Y-m-d H:i:s:u')) . '.' . $extension;
}


Expand Down

0 comments on commit 2e76bc9

Please sign in to comment.