Selenium WebDriver date handling after Selenium 4 W3C compliance transition
Selenium WebDriver does not alter or normalize JavaScript Date values returned by executeScript; the browser supplies dates in its local timezone, which reflects the machine where the browser runs. Date strings sent to inputs via sendKeys are interpreted using the host locale settings, which can shift stored UTC values for controls such as datetime-local. Se