Skip to content

Commit d06f91c

Browse files
authored
Fix: DateTime ISO format (#371)
1 parent e83afc6 commit d06f91c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/DataTransformer/DuplicateIndex/Standard.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class Standard implements DataTransformerInterface
2222
public function transform($data, $options = [])
2323
{
2424
if ($data instanceof \DateTime) {
25-
$data = $data->format(\DateTime::ISO8601);
25+
$data = $data->format(\DateTimeInterface::ISO8601);
2626
}
2727

2828
return trim(strtolower(str_replace(' ', ' ', $data)));

0 commit comments

Comments
 (0)