[Good first issue] 除息提醒保留行情源的日历日期

Open Beginner friendly
#105 0 comments 0 reactions 0 assignees View on GitHub

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
Domain
backend, data, tooling

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

bug good first issue help wanted

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 日,并按界面当前格式呈现日期。
  • 补回归测试,使用日期型输入和明确的时区覆盖上述两个场景。

源码与测试入口

欢迎评论 /claim 认领。PR 请关联本 Issue,并附上实际执行的测试命令和结果。 贡献指南

Dominant language
TypeScript
Stars
206
Forks
37
Avg merge
8h 8m
Merged PRs (30d)
7

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from ydflow/Trail

All issues in ydflow/Trail

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.