From 233ca11a3353c39730d9a57f5a4b1fb66486b4c7 Mon Sep 17 00:00:00 2001 From: Adam Pash Date: Tue, 29 Nov 2016 16:54:52 -0800 Subject: [PATCH] fix: added timezone to new republic date (#32) --- src/extractors/custom/newrepublic.com/index.js | 2 ++ src/extractors/custom/newrepublic.com/index.test.js | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/extractors/custom/newrepublic.com/index.js b/src/extractors/custom/newrepublic.com/index.js index 06a033f2..6eccba1d 100644 --- a/src/extractors/custom/newrepublic.com/index.js +++ b/src/extractors/custom/newrepublic.com/index.js @@ -19,6 +19,8 @@ export const NewrepublicComExtractor = { selectors: [ ['meta[name="article:published_time"]', 'value'], ], + + timezone: 'America/New_York', }, dek: { diff --git a/src/extractors/custom/newrepublic.com/index.test.js b/src/extractors/custom/newrepublic.com/index.test.js index f354d16b..03880c35 100644 --- a/src/extractors/custom/newrepublic.com/index.test.js +++ b/src/extractors/custom/newrepublic.com/index.test.js @@ -95,7 +95,7 @@ describe('NewrepublicComExtractor', () => { // Update these values with the expected values from // 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 () => {