TechBuzzPro

How to Change Chrome Time Zone for Testing

· 6 min read · Apps & Browsers

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

This guide shows you how to change the time zone in Google Chrome, both for everyday use (like viewing a website as if you were in another country) and for testing web applications that depend on local time. You'll learn the built-in method and a more advanced approach using Chrome DevTools. No special software is needed—just Chrome on any desktop operating system.

What You'll Need

  • Google Chrome installed on your computer (Windows, macOS, Linux, or ChromeOS).
  • For the DevTools method, a webpage you want to test (any website works).
  • Basic familiarity with Chrome's settings menu.

Step-by-Step

Method 1: Change System Time Zone (Affects Chrome and Everything Else)

  1. Open your computer's time zone settings. Chrome normally uses your operating system's time zone. On Windows, go to Settings > Time & Language > Date & time. On macOS, open System Settings > General > Date & Time. On Linux, look for the time settings in your system tray or system settings.
  2. Turn off automatic time zone detection (if enabled). On Windows, toggle off “Set time zone automatically.” On macOS, uncheck “Set time zone automatically using current location.”
  3. Select your desired time zone from the drop-down list. Choose the city or region that matches the time zone you want to simulate.
  4. Restart Chrome (fully close all windows and reopen) to ensure all pages and extensions pick up the new time zone.
  5. Verify the change by visiting a site that shows your local time, like time.is or whatismytimezone.com. It should display the new time zone.

Method 2: Override Time Zone in Chrome DevTools (Per-Tab, for Testing)

  1. Open Chrome DevTools by pressing F12 or Ctrl+Shift+I (Windows/Linux) or Cmd+Option+I (macOS).
  2. Open the Command Menu by pressing Ctrl+Shift+P (Windows/Linux) or Cmd+Shift+P (macOS).
  3. Type “Show Sensors” in the command menu and select the “Show Sensors” option from the results. This opens the Sensors panel at the bottom of DevTools.
  4. Find the “Location” section in the Sensors panel. It has a drop-down menu that defaults to “No override.”
  5. Choose a time zone from the list, or select “Custom” and type a specific city name (e.g., “Asia/Tokyo”). The list includes many common cities and UTC offsets.
  6. Reload the page (press F5 or Ctrl+R) to apply the override. The DevTools override only affects the current tab.
  7. To remove the override, go back to the Sensors panel and select “No override.” The tab returns to your system time zone.

Method 3: Use Chrome's Command-Line Flag (For Testing Multiple Zones)

  1. Close all Chrome windows to ensure a clean launch.
  2. Open your command prompt or terminal. On Windows, press Win+R, type cmd, and press Enter. On macOS, open Terminal from Applications/Utilities.
  3. Navigate to your Chrome installation folder (or use the full path). Typical paths: C:\Program Files\Google\Chrome\Application\chrome.exe on Windows, /Applications/Google Chrome.app/Contents/MacOS/Google Chrome on macOS.
  4. Launch Chrome with the flag --js-flags="--timezone-offset=300" (replace 300 with the offset in minutes from UTC, e.g., 300 for UTC+5). For example, on Windows: "C:\Program Files\Google\Chrome\Application\chrome.exe" --js-flags="--timezone-offset=300". On macOS: "/Applications/Google Chrome.app/Contents/MacOS/Google Chrome" --js-flags="--timezone-offset=300".
  5. Verify the time zone by visiting a time-checking site. The flag affects all tabs in that Chrome session.
  6. To stop using the override, close Chrome and relaunch it normally (without the flag).

Common Mistakes

  • Forgetting to turn off automatic time zone detection—if it's on, your manual selection may be overwritten.
  • Not restarting Chrome after changing the system time zone—many pages cache the old time zone until a full restart.
  • Using DevTools override on the wrong tab—the override is per-tab; opening a new tab resets to system time.
  • Mixing up UTC offsets—a positive offset is ahead of UTC (east), negative is behind (west). Double-check your sign.
  • Using the command-line flag with an existing Chrome instance—if Chrome is already running, the flag may be ignored or open a new window without the override.

Tips

  • Use the DevTools method for quick tests—it's the fastest way to simulate a time zone without affecting your whole system.
  • For automated testing, consider using Chrome's --timezone command-line flag (e.g., --timezone=America/New_York) instead of the JS offset flag, as it more accurately simulates the full time zone behavior.
  • Test with multiple zones—create a checklist of critical time zones for your app (e.g., UTC, your local zone, and a zone across the date line like Pacific/Kiritimati).
  • Keep a bookmark to a time-checking site to verify your override quickly.
  • If you're a web developer, use the DevTools override to test date pickers, countdown timers, and time-based content without changing your computer's clock.

Troubleshooting

  • The time zone doesn't change after following the steps. First, ensure you've fully restarted Chrome. If using DevTools, check that the Sensors panel is still open and the override is selected. If using the system method, confirm automatic detection is off.
  • The website still shows the old time zone. Some sites use JavaScript to get the time zone from the browser's Intl.DateTimeFormat API. The DevTools override should affect this, but if not, try the command-line flag method. Also, clear the site's cache (DevTools > Network > Disable cache while DevTools is open).
  • DevTools Sensors panel doesn't show a Location section. Make sure you're in the latest version of Chrome. If the option is missing, try the command-line flag method instead.
  • The command-line flag doesn't work. Ensure Chrome is completely closed (check the system tray or Activity Monitor for background processes). Also, verify the flag syntax—use --timezone-offset= (with equals) or --timezone= for the named zone.
  • After using the command-line flag, all my bookmarks and extensions are gone. This can happen if Chrome creates a new profile. Use the --user-data-dir flag to point to your existing profile, or just relaunch normally after testing.

Frequently Asked Questions

Does changing the time zone in Chrome affect my computer's clock?

No. The DevTools override and the command-line flag only affect Chrome's view of time. Your system clock remains unchanged. The system method (Method 1) does change your computer's time zone, but not the actual time.

Can I set a custom time zone not in the DevTools list?

Yes. In the Sensors panel, select “Custom” and type a valid IANA time zone name, like “Asia/Kathmandu” or “Australia/Eucla”. It must be a real time zone from the IANA database.

Will the DevTools override work on all websites?

It works on most websites that use standard JavaScript APIs. However, sites that use server-side time zone detection (based on your IP address) will still show the server's time zone.

How do I reset Chrome to my normal time zone?

For DevTools, set the override to “No override.” For the command-line flag, close Chrome and relaunch without the flag. For the system method, re-enable automatic time zone detection or select your original time zone.

Is there a way to test multiple time zones at once?

You can open multiple Chrome windows, each launched with a different command-line flag, or use separate profiles (via --user-data-dir) for each zone. In DevTools, you can only set one override per tab, but you can open multiple tabs and set different overrides in each.

Does this work on Chrome for mobile (Android/iOS)?

The DevTools method is for desktop only. On mobile, you can change the device's time zone in the system settings, which will affect Chrome. There's no per-browser override on mobile.