[Good first issue] 除息提醒保留行情源的日历日期
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 78/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- bun, electron, react, typescript
Research direction
Start with the date parsing in packages/longbridge-tools/src/parser.ts around parseDividendResponse, where a calendar date is stored at UTC midnight, then the alert text in packages/shared/src/alerts/evaluators.ts that formats it in local time. Run bun test --isolate packages/shared/src/alerts/evaluators.test.ts with TZ set to America/Los_Angeles and Etc/UTC. Done when both zones show June 4 and a regression test covers both zones with a date-only input.
Written by the indexing model from the issue text.
Description
Date-only dividend records can appear a day early in alerts west of UTC.
复现
用 parseDividendResponse() 解析一条 ex_date: "2026.06.04" 的记录,固定当前时间为 2026-06-01T12:00:00Z。把解析结果作为 company.dividends 的返回值,调用 evaluateRule() 生成除息提醒。分别在两个独立 Bun 进程设置 TZ=America/Los_Angeles 和 TZ=Etc/UTC,提醒文案的日期分别是 6 月 3 日和 6 月 4 日。两个进程拿到同一个日期记录。
验收标准
- 同一条日期型记录在这两个时区的提醒都显示 6 月 4 日,并按界面当前格式呈现日期。
- 补回归测试,使用日期型输入和明确的时区覆盖上述两个场景。
源码与测试入口
- 原始值是日历日期。解析器以 UTC 零点存储它,而提醒文案按本地时区格式化。 除息日解析 · 日期转时间戳 · 除息提醒文案
bun test --isolate packages/shared/src/alerts/evaluators.test.ts。 已有提醒测试
欢迎评论 /claim 认领。PR 请关联本 Issue,并附上实际执行的测试命令和结果。 贡献指南
- Dominant language
- TypeScript
- Stars
- 206
- Forks
- 37
- Avg merge
- 8h 8m
- Merged PRs (30d)
- 7
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from ydflow/Trail
-
area:desktop bug help wanted
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
bug help wanted
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
area:desktop bug good first issue help wanted
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
area:desktop bug good first issue help wanted
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
bug good first issue help wanted
Difficulty 2/5 1-3 hours Newbie friendliness 80/100
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
Maintainers usually reply within 1 day
-
[Security]Unauthenticated WebSocket JSON.parse Without Error Handling Leads to Process TerminationOpen
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
nocobase/nocobase#11711 · 1 comment ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day
-
Y2025: QBI forms print a negative taxable income; Form 8995-A lines 14b/14c check the wrong columnOpen
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 80/100
readest/readest#7903 · 1 comment ·
Maintainers usually reply within 1 day