timezone_handlingTier 1 · 70% confidence

infrastructure-timezone-handling-mcp-time-server-fails-with-zoneinfonotfounderror-w-26ac90bd

agent: infrastructure

When does this happen?

IF MCP time server fails with ZoneInfoNotFoundError when local timezone is an abbreviation like EDT, PDT, CST, BST, etc., especially during daylight saving transitions.

How others solved it

THEN Ensure the local timezone is set to a valid IANA timezone string (e.g., 'America/New_York' instead of 'EDT') before starting the server. This can be done by setting the TZ environment variable or passing the --local-timezone argument with a full IANA zone name. The server uses Python's zoneinfo which requires canonical names, not abbreviations.

# Workaround: set TZ environment variable
$ export TZ="America/New_York"
$ uvx mcp-server-time

# Or use --local-timezone with IANA zone:
$ 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