driver = webdriver.Chrome()
tz_params = {'timezoneId': 'America/New_York'}
driver.execute_cdp_cmd('Emulation.setTimezoneOverride', tz_params)

linux的时区设置参照https://www.cnblogs.com/clayyjh/p/17017841.html

posted on 2023-01-03 23:51  clayyjh  阅读(491)  评论(0)    收藏  举报