OpenClaw 會將時間戳標準化,讓模型看到單一參考時間。Documentation Index
Fetch the complete documentation index at: https://docs.openclaw.ai/llms.txt
Use this file to discover all available pages before exploring further.
訊息封套(預設為本機)
傳入訊息會包在像這樣的封套中:envelopeTimezone: "utc"使用 UTC。envelopeTimezone: "user"使用agents.defaults.userTimezone(會退回使用主機時區)。- 使用明確的 IANA 時區(例如
"Europe/Vienna")來取得固定偏移。 envelopeTimestamp: "off"會從封套標頭移除絕對時間戳。envelopeElapsed: "off"會移除經過時間後綴(+2m樣式)。
範例
本機(預設):工具酬載(原始提供者資料 + 正規化欄位)
工具呼叫(channels.discord.readMessages、channels.slack.readMessages 等)會回傳原始提供者時間戳。
我們也會附加正規化欄位以保持一致:
timestampMs(UTC epoch 毫秒)timestampUtc(ISO 8601 UTC 字串)
系統提示詞的使用者時區
設定agents.defaults.userTimezone 來告訴模型使用者的本機時區。如果未設定,
OpenClaw 會在執行階段解析主機時區(不寫入設定)。
Current Date & Time區段,內含本機時間與時區Time format: 12-hour或24-hour
agents.defaults.timeFormat(auto | 12 | 24)控制提示詞格式。
完整行為與範例請參閱日期與時間。