A browser extension to spoof the current date and time seen by websites.
Key metrics and engagement data
Repository has been active for 2 years, 4 months
⭐53
Want deeper insights? Explore GitObs.com
A browser extension to fake the current date and time in JavaScript Date
or Intl.DateTimeFormat
objects, to help you debug time-dependent frontend applications without having to change the system time.
https://github.com/user-attachments/assets/74f0ee57-f941-4b94-9176-5445d58fd8a1
Enter
or by clicking the "Change Date" button. In Chrome, when first activating the extension on a tab, the page needs to be reloaded once to apply the changes.Date
or Intl.DateTimeFormat
in the current tab now returns the fake date/time you set. Other tabs and origins are not affected.To restore the system time, click the extension icon and switch off the "Enable Fake Date" toggle.
When the fake date is enabled, the clock runs forward from the configured time. You can stop the clock by switching on the "Stop Clock" toggle. The fake date will be reset to the last value you set.
2025-04-27 12:40
- Local time2025-04-27
- Midnight UTC2025-03-30 00:59:55
- Assuming your system timezone is Europe/London (GMT), 5 seconds before a one-hour jump to 2 a.m. (summer time)2025-04-27T12:40Z
- Set local equivalent for given UTC time2025-04-27T12:40+1130
- Set local equivalent for time with +11:30 timezone offset. Note that actual time zone is not changed2025-03-25T12:40:00.120
- Local time with milliseconds1731493140025
- UNIX timestampDate
and Intl.DateTimeFormat
objects.sandbox
attribute.For Chrome, Edge, and other Chromium-based browsers, install the extension from the Chrome Web Store: https://chrome.google.com/webstore/detail/time-travel/jfdbpgcmmenmelcghpbbkldkcfiejcjg
For Firefox, install it from: https://addons.mozilla.org/en-US/firefox/addon/timetravel/
To build and use a local version:
pnpm install
.pnpm dev
(or pnpm build
for a production version).dist/chrome
directoryStart a new Firefox instance with the extension loaded using (cd dist/firefox; npx web-ext run)
, or install manually via:
dist/firefox/manifest.json
.Contributions are welcome! If you have ideas, bug reports, or want to help improve Time Travel, please open an issue or submit a pull request on GitHub.