fix: added timezone to new republic date (#32)

This commit is contained in:
Adam Pash 2016-11-29 16:54:52 -08:00 committed by GitHub
parent cfe7f34be4
commit 233ca11a33
2 changed files with 3 additions and 1 deletions

View File

@ -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: {

View File

@ -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 () => {