chat-ui
40ea5536 - Use local timezone for ISO date to avoid midnight inconsistency

Commit
4 days ago
Use local timezone for ISO date to avoid midnight inconsistency toISOString() returns UTC which can differ from the local date near midnight, causing contradictory dates in the same prompt (e.g. the human-readable date says "February 25" while the ISO date says "2026-02-26"). Build the ISO string from local date components instead so all date values in the tool preprompt stay consistent. https://claude.ai/code/session_01DmqK4Lmm7Uv41oHV3HqWpT
Author
Committer
Parents
Loading