The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
docs(i18n): mirror the Windows TZ note in zh-Hans; drop duplicate POSIX control test
Tekniumbd8c433487a4
diff --git a/tests/tools/test_code_execution_windows_env.py b/tests/tools/test_code_execution_windows_env.pyindex 5b07e14717c..332814b7a55 100644--- a/tests/tools/test_code_execution_windows_env.py+++ b/tests/tools/test_code_execution_windows_env.py@@ -675,14 +675,6 @@ def test_windows_child_keeps_os_local_timezone_when_timezone_is_configured(monkeassert "TZ" not in _configured_timezone_child_env()-def test_posix_child_receives_configured_timezone(monkeypatch):- """POSIX children retain the configured IANA timezone behavior."""- monkeypatch.setattr(code_execution_env, "_IS_WINDOWS", False)- monkeypatch.setattr("hermes_time.get_timezone_name", lambda: "America/Los_Angeles")-- assert _configured_timezone_child_env()["TZ"] == "America/Los_Angeles"--@pytest.mark.windows_onlydef test_windows_live_child_offset_matches_os_zone_when_timezone_is_configured(monkeypatch):"""The user-visible contract of #112233: with ``timezone:`` configured, a real Windows childdiff --git a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/reference/environment-variables.md b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/reference/environment-variables.mdindex a7eb02b1ca4..85b32f77f46 100644--- a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/reference/environment-variables.md+++ b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/reference/environment-variables.md@@ -116,7 +116,7 @@ description: "Hermes Agent 使用的所有环境变量完整参考"| `HERMES_NOUS_TIMEOUT_SECONDS` | Nous 凭证/token 流程的 HTTP 超时 || `HERMES_DUMP_REQUESTS` | 将 API 请求载荷转储到日志文件(`true`/`false`) || `HERMES_PREFILL_MESSAGES_FILE` | 包含在 API 调用时注入的临时预填消息的 JSON 文件路径 |-| `HERMES_TIMEZONE` | IANA 时区覆盖(例如 `America/New_York`) |+| `HERMES_TIMEZONE` | IANA 时区覆盖(例如 `America/New_York`)。在 Linux/macOS 上还会作为 `TZ` 导出给 `execute_code` 子进程;在 Windows 上这些子进程保留操作系统时区,因为 Windows C 运行时只支持 POSIX 形式的 `TZ` 字符串,IANA 名称会被解析成错误的偏移量 |## 工具 APIdiff --git a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/user-guide/configuration.md b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/user-guide/configuration.mdindex 5a57e65e33e..a1507083366 100644--- a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/user-guide/configuration.md+++ b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/user-guide/configuration.md@@ -1574,6 +1574,8 @@ timezone: "America/New_York" # IANA 时区(默认:"" = 服务器本地时支持的值:任何 IANA 时区标识符(例如 `America/New_York`、`Europe/London`、`Asia/Kolkata`、`UTC`)。留空或省略以使用服务器本地时间。+代理时钟、cron 调度和时间相关工具在所有操作系统上都遵循此时区。通过 `execute_code` 运行的代码在 Linux 和 macOS 上也会以 `TZ` 的形式继承它;在 Windows 上这些子进程保留操作系统配置的时区(Windows C 运行时只解析 POSIX 形式的 `TZ` 字符串,IANA 名称会产生错误的 UTC 偏移量),因此若子脚本必须以此时区显示本地时间,请直接设置 Windows 系统时区。+## Discord为消息 gateway 配置 Discord 特定行为: