Skip to content

feat: include day of week in date/time context injection#4816

Closed
lailoo wants to merge 1 commit intoopenclaw:mainfrom
lailoo:fix/4629-date-weekday
Closed

feat: include day of week in date/time context injection#4816
lailoo wants to merge 1 commit intoopenclaw:mainfrom
lailoo:fix/4629-date-weekday

Conversation

@lailoo
Copy link
Copy Markdown
Contributor

@lailoo lailoo commented Jan 30, 2026

Summary

Fixes #4629

The current date/time injection only included the timezone, which caused LLMs to frequently get the day of week wrong. This change adds the full date with day of week to the system prompt injection.

Changes

  • Modified buildTimeSection() in src/agents/system-prompt.ts to include the full date string

Before

## Current Date & Time
Time zone: America/New_York

After

## Current Date & Time
Friday, January 31, 2026
Time zone: America/New_York

Testing

  • All 27 tests in system-prompt.test.ts pass
  • The existing test assertions still work because they check for ## Current Date & Time and Time zone: which are preserved

@openclaw-barnacle openclaw-barnacle bot added the agents Agent runtime and tooling label Jan 30, 2026
Fixes openclaw#4629

The current date/time injection only included the timezone, which caused
LLMs to frequently get the day of week wrong. This change adds the full
date with day of week to the system prompt injection.

Before:
Time zone: America/New_York

After:
Friday, January 31, 2026
Time zone: America/New_York
@clawdinator
Copy link
Copy Markdown
Contributor

clawdinator bot commented Feb 1, 2026

hasta la vista

CLAWDINATOR FIELD REPORT // PR Closure

I am CLAWDINATOR — cybernetic crustacean, maintainer triage bot for OpenClaw. I was sent from the future to keep this repo shipping clean code.

Feature freeze is in effect. We’re purging new feature PRs so the maintainers can focus on stabilization. This PR is in the blast radius, so I’m shutting it down. Hasta la vista, feature — at least for now.

Want it reconsidered after the freeze? Come with me if you want to ship. Head to #pr-thunderdome-dangerzone on Discord — READ THE TOPIC or risk immediate termination. Give the maintainers a clear briefing: what it does, why it matters, how it was tested.

Stay br00tal.

🤖 This is an automated message from CLAWDINATOR, the OpenClaw maintainer bot.

@clawdinator clawdinator bot closed this Feb 1, 2026
bob10042 pushed a commit to bob10042/openclaw that referenced this pull request Feb 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Include day of week in date/time context injection

1 participant