timezone-mock
JSON →A JavaScript library to mock the local timezone for testing purposes. Version 1.4.2 is current stable, with infrequent releases. It replaces the global Date constructor with a mocked version that behaves as if in a specified timezone, including DST transitions. Key differentiators: lightweight, no dependencies, supports multiple timezones (US/Pacific, US/Eastern, Brazil/East, UTC, Europe/London, Australia/Adelaide) and GMT offsets, and includes TypeScript types. Unlike full timezone libraries, it focuses solely on mocking for testing, not on timezone conversions or comprehensive data.
Traffic · last 30 days ↑0% vs prev 7d
total hits 8
actors 3 distinct systems
last hit 3d ago Bingbot
top countries 🇺🇸 United States · 🇨🇦 Canada · 🇬🇧 United Kingdom