nice-gee/scripts
kbanc85 303a31123a Fix article date extraction to use RSS feed publication dates
Root cause: AI models don't know "today's date" and were defaulting to 2024

Changes:
1. Update extract-article-data.ts to accept RSS pubDate parameter
2. Format RFC 2822 dates from RSS feed to YYYY-MM-DD
3. Pass formatted date directly in AI prompt instead of asking for "today's date"
4. Update auto-add-new-articles.ts to pass pubDate from RSS feed
5. Correct 3 existing articles with wrong dates:
   - ai-market-research-cfo-scrutiny: 2024-02-14 → 2025-11-10
   - leaders-using-ai-daily-scale-3x-faster: 2024-02-13 → 2025-11-10
   - team-stopped-questioning-ai: 2024-02-13 → 2025-11-07

Result:
- Future articles will have accurate publication dates from RSS feed
- No longer depends on AI model's knowledge cutoff
- Falls back to system date if RSS feed date is invalid

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-10 14:55:21 -05:00
..
add-claim-to-data.ts Fix comma insertion logic to prevent undefined entries 2025-11-06 11:46:32 -05:00
audit-claims.ts Clean up claims data and add validation system 2025-11-06 17:54:07 -05:00
auto-add-new-articles.ts Fix article date extraction to use RSS feed publication dates 2025-11-10 14:55:21 -05:00
check-new-articles.ts Remove Office Hour entry and filter live broadcasts 2025-11-06 17:58:16 -05:00
comprehensive-claim-fixer.ts Clean up claims data and add validation system 2025-11-06 17:54:07 -05:00
extract-article-data-old.ts.bak Implement two-tier AI extraction for 19% cost savings 2025-11-06 13:10:22 -05:00
extract-article-data.ts Fix article date extraction to use RSS feed publication dates 2025-11-10 14:55:21 -05:00
find-duplicates.ts Clean up claims data and add validation system 2025-11-06 17:54:07 -05:00
find-similar-articles.ts Clean up claims data and add validation system 2025-11-06 17:54:07 -05:00
fix-all-claims.ts Clean up claims data and add validation system 2025-11-06 17:54:07 -05:00
generate-claim-fixes.ts Clean up claims data and add validation system 2025-11-06 17:54:07 -05:00
generate-rss.ts Add defensive checks to RSS/sitemap generation 2025-11-06 11:16:57 -05:00
generate-sitemap.ts Add defensive checks to RSS/sitemap generation 2025-11-06 11:16:57 -05:00
merge-migrated-data.ts Add 2 new claims pages using automated AI extraction 2025-11-04 14:29:42 -05:00
remove-duplicates.ts Clean up claims data and add validation system 2025-11-06 17:54:07 -05:00
validate-claims.ts Fix auto-add-articles workflow validation issues 2025-11-10 13:30:49 -05:00