Making use of timezone in an alpine container image
To set your alpine-based container to output the date in your favorite local timezone, pass it the TZ=Europe/Amsterdam
environment variable and also install the tzdata
package using apk
. A date
command will then give you your local time instead of (the default) UTC time.