{"record":{"id":"123c7dcde3a293fa","repo":"HKUDS/nanobot","slug":"unknown-timezone-value-r","errorCode":null,"errorMessage":"unknown timezone {value!r}","messagePattern":"unknown timezone (.+?)","errorType":"validation","errorClass":"ValueError","httpStatus":null,"severity":"error","filePath":"nanobot/config/schema.py","lineNumber":191,"sourceCode":"\n        data = dict(cast(dict[str, object], value))\n        timezone_mode = data.get(\"timezoneMode\", data.get(\"timezone_mode\"))\n        if timezone_mode is None:\n            timezone_mode = \"manual\" if \"timezone\" in data else \"auto\"\n            data[\"timezoneMode\"] = timezone_mode\n        if timezone_mode == \"auto\":\n            data[\"timezone\"] = detect_system_timezone()\n        return data\n\n    @field_validator(\"timezone\")\n    @classmethod\n    def validate_timezone(cls, value: str) -> str:\n        from zoneinfo import ZoneInfo, ZoneInfoNotFoundError\n\n        try:\n            ZoneInfo(value)\n        except ZoneInfoNotFoundError:\n            raise ValueError(f\"unknown timezone {value!r}\") from None\n        return value\n\n\nclass AgentsConfig(Base):\n    \"\"\"Agent configuration.\"\"\"\n\n    defaults: AgentDefaults = Field(default_factory=AgentDefaults)\n\n\nclass ProviderConfig(Base):\n    \"\"\"LLM provider configuration.\"\"\"\n\n    # User-facing name for dynamic custom providers.\n    display_name: str | None = Field(\n        default=None,\n        exclude_if=lambda value: value is None,\n    )\n    api_key: str | None = Field(default=None, repr=False)","sourceCodeStart":173,"sourceCodeEnd":209,"githubUrl":"https://github.com/HKUDS/nanobot/blob/42f37dc4c0e409eac7818a82d165c5f2757bc075/nanobot/config/schema.py#L173-L209","documentation":"In AgentsConfig.validate_timezone, the configured timezone string is not a name known to zoneinfo (ZoneInfoNotFoundError). The validator rejects the bad value at config load; the input at fault is the timezone field (e.g. a misspelled IANA zone like 'Amercia/New_York').","triggerScenarios":"Thrown at nanobot/config/schema.py:191 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Use a valid IANA zone name such as 'America/New_York' or 'UTC'","Set timezoneMode to \"auto\" to detect the system timezone","Install system tzdata (or the Python tzdata package) if valid zones still fail"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"42f37dc4c0e409eac7818a82d165c5f2757bc075","analyzedAt":"2026-08-26T00:18:52.276Z","contentChangedAt":"2026-08-26T00:18:52.276Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}