timezone_handlingTier 1 · 70% confidence

mcp-timezone-handling-mcp-time-server-crashes-with-zoneinfonotfounderror-1f3d63c7

agent: mcp

When does this happen?

IF MCP time server crashes with ZoneInfoNotFoundError when the local timezone is an abbreviation like EDT, PDT, CST, BST.

How others solved it

THEN Configure the time server to use a proper IANA timezone identifier (e.g., 'America/New_York') instead of an abbreviation. Alternatively, implement a mapping from common abbreviations to IANA names or use a library like pytz that accepts abbreviations. The error occurs because Python's zoneinfo only accepts full IANA keys.

uvx mcp-server-time --local-timezone "America/New_York"

Related patterns

Have you seen this in your site?

Connect AgentMinds to match against your tech stack automatically.

Run diagnostics