1.4 KiB
1.4 KiB
summary, read_when
| summary | read_when | ||
|---|---|---|---|
| Timezone handling for agents, envelopes, and prompts |
|
Timezones
Clawdbot standardizes timestamps so the model sees a single reference time.
Message envelopes (UTC)
Inbound messages are wrapped in an envelope like:
[Provider ... 2026-01-05T21:26Z] message text
The timestamp in the envelope is always UTC, with minutes precision.
Tool payloads (raw provider data + normalized fields)
Tool calls (channels.discord.readMessages, channels.slack.readMessages, etc.) return raw provider timestamps.
We also attach normalized fields for consistency:
timestampMs(UTC epoch milliseconds)timestampUtc(ISO 8601 UTC string)
Raw provider fields are preserved.
User timezone for the system prompt
Set agents.defaults.userTimezone to tell the model the user's local time zone. If it is
unset, Clawdbot resolves the host timezone at runtime (no config write).
{
agents: { defaults: { userTimezone: "America/Chicago" } }
}
The system prompt includes:
Current Date & Timesection with local time and timezoneTime format: 12-houror24-hour
You can control the prompt format with agents.defaults.timeFormat (auto | 12 | 24).
See Date & Time for the full behavior and examples.