mirror of
https://github.com/postlight/mercury-parser
synced 2024-11-17 03:25:31 +00:00
fix: added timezone to new republic date (#32)
This commit is contained in:
parent
cfe7f34be4
commit
233ca11a33
@ -19,6 +19,8 @@ export const NewrepublicComExtractor = {
|
|||||||
selectors: [
|
selectors: [
|
||||||
['meta[name="article:published_time"]', 'value'],
|
['meta[name="article:published_time"]', 'value'],
|
||||||
],
|
],
|
||||||
|
|
||||||
|
timezone: 'America/New_York',
|
||||||
},
|
},
|
||||||
|
|
||||||
dek: {
|
dek: {
|
||||||
|
@ -95,7 +95,7 @@ describe('NewrepublicComExtractor', () => {
|
|||||||
|
|
||||||
// Update these values with the expected values from
|
// Update these values with the expected values from
|
||||||
// the article.
|
// the article.
|
||||||
assert.equal(date_published, '2016-11-18T00:00:00.000Z');
|
assert.equal(date_published, '2016-11-18T05:00:00.000Z');
|
||||||
});
|
});
|
||||||
|
|
||||||
it('returns the dek', async () => {
|
it('returns the dek', async () => {
|
||||||
|
Loading…
Reference in New Issue
Block a user