Red Hat Display Time Zone
First you must know the name of the time zone you wish to check.
Red hat display time zone. The following linux command will list all timezones. Under CentOSRHEL systems all timezone settings file are located under usrsharezoneinfo directory and etclocaltime is the file use is used by operating system to set current timezone for system. Usually the time zone is set to the location where the image or base image was built or to UTC0000.
Linux systems traditionally store the definition of their timezone in etclocaltimeThis is a binary file with the timezone info and if we want to change it we need to find the appropriate timezone file from usrsharezoneinfo and iether copy it over or create a soft link. Locales date and time full date and time C. Once the image is pulled the container engine just launches the container based on the hardcoded time zone.
Day of month ie. There are several files and directories that are used for time zones. A Red Hat training course is available for Red Hat Enterprise Linux.
However you can use date or timedatectl command to display the current time and timezone as well. Find the file representing the timezone to be configured. Execute the below commands as root user.
Check the file etcsysconfigclock and the date command output to confirm the current timezone set. There is no installation process to modify the time zone. A red X appears indicating your selection.
Is there a way to make this time display consistently. I spotted it today so I am creating the link to project JIRA. For REHLCentOS 7 and Fedora 25-22 users the file etclocaltime is a symbolic link to the timezone file under the directory usrsharezoneinfo.