Date & Time
crocbot defaults to host-local time for transport timestamps and user timezone only in the system prompt. Provider timestamps are preserved so tools keep their native semantics (current time is available viasession_status).
Message envelopes (local by default)
Inbound messages are wrapped with a timestamp (minute precision):envelopeTimezone: "utc"uses UTC.envelopeTimezone: "local"uses the host timezone.envelopeTimezone: "user"usesagents.defaults.userTimezone(falls back to host timezone).- Use an explicit IANA timezone (e.g.,
"America/Chicago") for a fixed zone. envelopeTimestamp: "off"removes absolute timestamps from envelope headers.envelopeElapsed: "off"removes elapsed time suffixes (the+2mstyle).
Examples
Local (default):System prompt: Current Date & Time
If the user timezone is known, the system prompt includes a dedicated Current Date & Time section with the time zone only (no clock/time format) to keep prompt caching stable:session_status tool; the status
card includes a timestamp line.
System event lines (local by default)
Queued system events inserted into agent context are prefixed with a timestamp using the same timezone selection as message envelopes (default: host-local).Configure user timezone + format
userTimezonesets the user-local timezone for prompt context.timeFormatcontrols 12h/24h display in the prompt.autofollows OS prefs.
Time format detection (auto)
WhentimeFormat: "auto", crocbot inspects the OS preference
and falls back to locale formatting. The detected value is cached per process
to avoid repeated system calls.
Tool payloads + connectors (raw provider time + normalized fields)
Channel tools return provider-native timestamps and add normalized fields for consistency:timestampMs: epoch milliseconds (UTC)timestampUtc: ISO 8601 UTC string
- Telegram: provider-specific numeric/ISO timestamps
