Skip to content

Commit

Permalink
use item.isoDate
Browse files Browse the repository at this point in the history
  • Loading branch information
guillaumewuip committed Jul 22, 2023
1 parent 37416a2 commit 700b734
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rss-to-tana/index.js
Expand Up @@ -98,8 +98,8 @@ function parseFeed(feed) {
const parsedFeed = await parser.parseURL(feed.url);

for (const item of parsedFeed.items) {
const pubDate = new Date(item.pubDate);
if (pubDate > lastRunDate) {
const publishedAt = new Date(item.isoDate);
if (publishedAt > lastRunDate) {
console.log(feed.url, `new ${item.title} detected`);

const tanaNode = feed.toTana(feed.url, item)
Expand Down

0 comments on commit 700b734

Please sign in to comment.