-
-
Notifications
You must be signed in to change notification settings - Fork 69.5k
System prompt should include current date, not just timezone #1928
Copy link
Copy link
Closed
Description
Problem
The buildTimeSection function in system-prompt.js only outputs the timezone:
## Current Date & Time
Time zone: UTC
It doesn't include the actual current date/time. The agent has to infer the date from message timestamps, which can lead to errors (e.g., getting the day of the week wrong).
Expected behavior
The system prompt should include the actual current date and time, e.g.:
## Current Date & Time
Current: Sunday, January 25, 2026 19:48 UTC
Time zone: UTC
Location
/dist/agents/system-prompt.js → buildTimeSection function
Impact
- Agent gives wrong day-of-week
- Confusion when answering "what day is it" type questions
- Have to rely on message timestamps which may not always be present
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
Type
Fields
Give feedbackNo fields configured for issues without a type.