Skip to content

[Bug]: System prompt missing current date/time after 66eec295b #3652

@cash-echo-bot

Description

@cash-echo-bot

Description

The system prompt no longer includes the current date/time, only the timezone. Agents cannot determine what day/time it is without inferring from message timestamps.

Regression

Introduced in commit 66eec295b ("perf: stabilize system prompt time") on Jan 24, 2026.

The buildTimeSection function was changed from:

function buildTimeSection(params: {
  userTimezone?: string;
  userTime?: string;
  userTimeFormat?: ResolvedTimeFormat;
}) {
  if (!params.userTimezone && !params.userTime) return [];
  return [
    "## Current Date & Time",
    params.userTime
      ? `${params.userTime} (${params.userTimezone ?? "unknown"})`
      : `Time zone: ${params.userTimezone}. Current time unknown; assume UTC for date/time references.`,
    params.userTimeFormat
      ? `Time format: ${params.userTimeFormat === "24" ? "24-hour" : "12-hour"}`
      : "",
    "",
  ];
}

To:

function buildTimeSection(params: { userTimezone?: string }) {
  if (!params.userTimezone) return [];
  return ["## Current Date & Time", `Time zone: ${params.userTimezone}`, ""];
}

The userTime and userTimeFormat parameters were removed entirely.

Current behavior

System prompt shows:

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

Expected behavior

System prompt should show:

## Current Date & Time
Tuesday, January 28, 2026 at 6:15 PM (America/Chicago)
Time format: 12-hour

Impact

  • Agents cannot determine the current date/time
  • Scheduling, reminders, and time-sensitive tasks are affected
  • Agents must infer time from message timestamps (unreliable)

Version

Clawdbot 2026.1.23 (post-66eec295b)

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