V
V
Vova Putsyk2017-11-04 17:03:31
Python
Vova Putsyk, 2017-11-04 17:03:31

How to make a separate timezone for each browser on selenium?

I am using firefox-based browser with selenium to python in multiple threads. And I need each individual browser window to have its own timezone. Normal firefox takes the timezone when it starts from the system and saves it, that is, if the timezone changes when firefox is launched, then it will not change in the browser itself without restarting. But in my browser everything is different, it always takes the timezone from the system. Can I somehow set a separate time zone for each window? Perhaps somehow through JavaScript. I tried the RunAsDate software, but without success. I will be grateful for the answer.
The browser I use is https://vektort13.pro/#progs

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Evgeniy_, 2018-01-12
@GeneD88

On os x this is enough

import os, time
os.environ['TZ'] = 'US/Eastern'
time.tzset()

result checked on https://whatismytimezone.com

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question