DEV Community

0 seconds of 0 secondsVolume 90%
Press shift question mark to access a list of keyboard shortcuts
00:00
00:00
00:00
 
Mahek Jariwala
Mahek Jariwala

Posted on

6

Test your website in different Timezone

There was a time when your customer faced time zone related issue in your website like customer saw a different date then the date for which it made a booking.
First steps that think is to change computer time zone with the customer time zone. But, When you change the time zone the browser sometimes stopped working. To avoid this kind of issue we can use Sensors feature available in Chrome Browser. Using Sensors feature we can able to change the timezone in browser easily.
To change time zone follow steps which are given below:

  1. Open Google chrome browser.
  2. Open developer tools using Ctrl + Shift + J command in Windows and Linux or using Cmd + Option + J command in Mac.
  3. Focus the console panel by clicking on it.
  4. Now press Command + Shift + P on Mac or Control + Shift + P on Windows, Linux. This will open dropdown.
  5. In this dropdown type Sensors, You can see Show Sensors option in Dropdown, Click on it.
  6. You can now show Sensors panel.
  7. In Sensors panel, You can see location dropdown.
  8. Click on location dropdown, You can see list of locations. From this location, you can select location match with the customer location.
  9. If there is no customer matching location available then there is an option to add new location as well called Location unavailable. You can select this option to manually add location like lat, long, TimezoneId and locale. This lat, long, TimezoneId and locale overrider only when you select Location unavailable option.
  10. If customer matching location available then you can select that option.
  11. You can refresh the page. (Note: Do not close the console).

Now you can test your website based on customer timezone.

Playwright CLI Flags Tutorial

5 Playwright CLI Flags That Will Transform Your Testing Workflow

  • 0:56 --last-failed
  • 2:34 --only-changed
  • 4:27 --repeat-each
  • 5:15 --forbid-only
  • 5:51 --ui --headed --workers 1

Learn how these powerful command-line options can save you time, strengthen your test suite, and streamline your Playwright testing experience. Click on any timestamp above to jump directly to that section in the tutorial!

Watch Full Video 📹️

Top comments (1)

Collapse
 
joseamaya profile image
José Antonio Fernández

Nice 😎

AWS Q Developer image

Your AI Code Assistant

Automate your code reviews. Catch bugs before your coworkers. Fix security issues in your code. Built to handle large projects, Amazon Q Developer works alongside you from idea to production code.

Get started free in your IDE

👋 Kindness is contagious

If you found this post useful, please drop a ❤️ or leave a kind comment!

Okay