Skip to content

Commit

Permalink
format ISO date
Browse files Browse the repository at this point in the history
  • Loading branch information
SethSharp committed Jul 30, 2024
1 parent 2b1e7d5 commit 9bd550e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/OddsClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -237,8 +237,6 @@ public function addParams(array $params): self

public function convertStringToIso(string $date): string
{
$date = Carbon::parse($date);

return $date->toIso8601String();
return Carbon::parse($date)->format('Y-m-d\TH:i:s\Z');
}
}

0 comments on commit 9bd550e

Please sign in to comment.