github / github/copilot-cli

current_datetime injected as UTC — should use local timezone

未關閉
#1,903 0 則留言 1 個 reaction 已指派 0 人 在 GitHub 檢視
area:context-memory
主要語言
Shell
星號
11.2k
分支
1.9k
平均合併
14 小時 16 分鐘
30 天內合併 PR
6

描述

The tag injected into every user message always uses UTC (Z suffix), regardless of system timezone. The model consistently misinterprets local time as a result. It can be partially fixed with custom instructions, but this is more expensive and less reliable.

Proposed fix: Use timezone-aware offset (-08:00) instead of Z. One-line change from toISOString() to local-aware formatting.

Affects: file/folder date naming, log timestamp interpretation, ETA estimation, contextual time awareness ("Saturday evening" vs "Sunday morning").

貢獻指南

開啟貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。