ChromeOptions options = new ChromeOptions();
+
+capabilities.setCapability("moon:options", Map.of(
+ "env", Arrays.asList("TZ=America/New_York") // This is where you set TZ variable with values like "America/New_York" or "Europe/London"
+));
+
+WebDriver driver = new RemoteWebDriver(new URL("https://moon.example.com/wd/hub"), options);
+
+driver.get("https://dateful.com/time-zone-converter"); // An example web site that respects TZ setting
+