Skip to content

Commit

Permalink
Fix dateModified incorrect article schema
Browse files Browse the repository at this point in the history
  • Loading branch information
ralphjsmit committed Oct 6, 2022
1 parent acbd67b commit f0c2493
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Schema/ArticleSchema.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ public function generateInner(): string
'@id' => $this->url,
],
'datePublished' => $this->datePublished->toIso8601String(),
'dateUpdated' => $this->dateModified->toIso8601String(),
'dateModified' => $this->dateModified->toIso8601String(),
'headline' => $this->headline,
])
->when($this->authors, fn (Collection $collection): Collection => $collection->put('author', $this->authors))
Expand Down

0 comments on commit f0c2493

Please sign in to comment.