Skip to content

System prompt should include current date, not just timezone #1928

@Jashiel-Star

Description

@Jashiel-Star

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.jsbuildTimeSection 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions