Skip to content

Commit 65e338a

Browse files
authored
feat: Add date formats to two extractors (#660)
These extractors were variously failing tests as I tried updating dependencies. It seems like some of the format detection logic has changed, and making these date detectors more explicit fixes them.
1 parent 8dd3c70 commit 65e338a

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/extractors/custom/ici.radio-canada.ca/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export const IciRadioCanadaCaExtractor = {
1111

1212
date_published: {
1313
selectors: [['meta[name="dc.date.created"]', 'value']],
14-
14+
format: 'YYYY-MM-DD|HH[h]mm',
1515
timezone: 'America/New_York',
1616
},
1717

src/extractors/custom/www.dmagazine.com/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ export const WwwDmagazineComExtractor = {
1616
],
1717

1818
timezone: 'America/Chicago',
19+
format: 'MMMM D, YYYY h:mm a',
1920
},
2021

2122
dek: {

0 commit comments

Comments
 (0)