Skip to content

Commit d205f23

Browse files
committed
Add datePublished check to PublishedTime extractor
1 parent e95b8b3 commit d205f23

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Detectors/PublishedTime.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ public function detect(): ?Datetime
2424
'newsrepublic:publish_date'
2525
)
2626
?: $ld->time('pagePublished')
27+
?: $ld->time('datePublished')
2728
?: $this->detectFromPath()
2829
?: $metas->time(
2930
'pagerender',

0 commit comments

Comments
 (0)