Skip to content
This repository has been archived by the owner on Jun 30, 2021. It is now read-only.

Commit

Permalink
Adding info about timezone TZ env variable (#94)
Browse files Browse the repository at this point in the history
  • Loading branch information
manoj9788 authored and elgalu committed May 20, 2016
1 parent c64d555 commit 767bdd6
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,28 @@ You can set a custom screen size at docker run time by providing `SCREEN_WIDTH`

open vnc://:hola@localhost:5900

### TimeZone

Browser/app purportedly considers the container's timezone, you can control and modify the timezone on a container by using TZ environment variable

docker run --rm -ti --name=grid -p 4444:24444 -p 5900:25900 \
-e TZ="America/Argentina/Salta" \
-v /dev/shm:/dev/shm -e VNC_PASSWORD=hola elgalu/selenium:2.53.0o```

Examples:

docker run ... -e TZ="US/Pacific" ...
docker exec grid date
Fri May 20 06:04:58 PDT 2016```

docker run ... -e TZ="America/Argentina/Buenos_Aires" ...
docker exec grid date
Fri May 20 10:04:58 ART 2016`

docker run ... -e TZ="Europe/Berlin" ...
docker exec grid date
Fri May 20 15:04:58 CEST 2016`

### Chrome flavor

This feature was available in previous versions, please go to [2.47.1m] to use it.
Expand Down

0 comments on commit 767bdd6

Please sign in to comment.