copilot-cli icon indicating copy to clipboard operation
copilot-cli copied to clipboard

current_datetime injected as UTC — should use local timezone

Open jmathes opened this issue 8 months ago • 1 comments

The <current_datetime> 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").

jmathes avatar Mar 07 '26 21:03 jmathes

This appears to be resolved as of GitHub Copilot CLI v1.0.88. Please update to that release or a newer stable version. We're closing this as completed. If it still happens, please comment with your version and reproduction steps.

copilot-cli-bot[bot] avatar Sep 23 '26 10:09 copilot-cli-bot[bot]