Assistant: journal reads send no timezone offset, so completed tasks land on the UTC day

未关闭 适合新手
#497 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
78/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
活跃
技术栈
csharp
领域
api

调研方向

阅读 TaskFlowApiClient.cs 中的 GetJournalEntriesAsync 和 GetJournalTodosAsync,然后比较创建调用和添加 todo 调用发送的时区偏移量。更新两个 GET 请求,使其传递相同的偏移量,并添加一个固定该值的测试;当两个请求都包含偏移量且测试通过时,即告完成。

由索引模型根据 Issue 内容生成。

描述

bug

Follow-up to #411 (drift list in PR #485). GET /JournalEntries and GET /JournalEntries/{id}/todos accept timezoneOffsetMinutes and use it to put a completed task on the local day it was completed, falling back to UTC when it's omitted (JournalEntriesController.cs:31, JournalTodosController.cs:26). The assistant's GetJournalEntriesAsync and GetJournalTodosAsync (TaskFlowApiClient.cs:61, 71) send no offset, although its create and add-todo calls do. So near midnight, get_journal, standup and weekly_review can put a task completed in the evening on the wrong day, and disagree with the web app.

Expected: both GETs pass the same offset the write calls use, and a test pins it. Related: spike #433 (how the timezone is passed). This fix doesn't need to wait for it. Needs grooming.

主要语言
C#
星标
1
派生
0
平均合并
2 小时 43 分钟
30 天内合并 PR
116

环境准备

  • 提供 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

nevridge/TaskFlow 的其他 Issue

查看 nevridge/TaskFlow 的全部 Issue

相似的 Issue

更多 C# Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。