Set timezone in Docker image

If using the ENV to set TZ to set the timezone, it should have the tzdata package installed on Linux distribution Docker base image. After investigating some common Linux distributions, the Debian and CentOS have the tzdata installed on their Base Docker images. And Ubuntu doesn’t have the tzdata package on the Docker base image.

In Dockerfile

RUN apt update && apt install tzdata -y
ENV TZ="America/New_York"