Skip to content

fix: add timezone handling guidance to yfinance-data skill#53

Merged
himself65 merged 1 commit intomainfrom
fix/yfinance-tz-aware-datetime
Apr 16, 2026
Merged

fix: add timezone handling guidance to yfinance-data skill#53
himself65 merged 1 commit intomainfrom
fix/yfinance-tz-aware-datetime

Conversation

@himself65
Copy link
Copy Markdown
Owner

@himself65 himself65 commented Apr 16, 2026

Summary

  • yfinance returns tz-aware datetime indices (America/New_York), but the skill had no guidance about this, causing generated code to crash with TypeError: Cannot compare tz-naive and tz-aware datetime-like objects
  • Added timezone handling as key rule Add Claude.app sandbox config docs to Twitter skill #7 in SKILL.md
  • Added a dedicated "Timezone Handling" section with correct/incorrect code examples in the API reference

Test plan

  • Install the updated skill and ask for S&P 500 period returns — verify no tz comparison error
  • Ask for any historical data filtered by date range — verify code uses tz-aware timestamps

🤖 Generated with Claude Code

yfinance returns tz-aware datetime indices (America/New_York), but
the skill had no guidance about this. Generated code would compare
tz-naive Timestamps against tz-aware indices, causing:
TypeError: Cannot compare tz-naive and tz-aware datetime-like objects

Added timezone handling as a key rule in SKILL.md and a dedicated
section with code examples in the API reference.
@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 16, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
finance-skills Ready Ready Preview, Comment Apr 16, 2026 1:18am

Request Review

@himself65 himself65 merged commit e2e59d1 into main Apr 16, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant