Skip to main content
Glama
pshempel

MCP Time Server Node

by pshempel
native-timezone-validation.md516 B
# Native JavaScript Timezone Validation Options (Tested 2025-07-18) 1. **Intl.supportedValuesOf('timeZone')** - Returns array of 428 valid IANA timezones - Requires Node 14.18+ - Always accurate to runtime environment 2. **Intl.DateTimeFormat with try/catch** - Throws exception for invalid timezones - Works on older Node versions - Good for validation 3. **getTimezoneOffset from date-fns-tz** - Returns NaN for invalid timezones - Already in our dependency stack - Fast and reliable

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/pshempel/mcp-time-server-node'

If you have feedback or need assistance with the MCP directory API, please join our Discord server