Skip to content

Commit

Permalink
feat: Add date formats to two extractors (#660)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
johnholdun authored May 6, 2022
1 parent 8dd3c70 commit 65e338a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/extractors/custom/ici.radio-canada.ca/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export const IciRadioCanadaCaExtractor = {

date_published: {
selectors: [['meta[name="dc.date.created"]', 'value']],

format: 'YYYY-MM-DD|HH[h]mm',
timezone: 'America/New_York',
},

Expand Down
1 change: 1 addition & 0 deletions src/extractors/custom/www.dmagazine.com/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ export const WwwDmagazineComExtractor = {
],

timezone: 'America/Chicago',
format: 'MMMM D, YYYY h:mm a',
},

dek: {
Expand Down

0 comments on commit 65e338a

Please sign in to comment.