

If /etc/localtime is a symbolic link to /usr/share/zoneinfo/., then determining the current timezone is easy: the link target pathname will exactly identify the actual timezone.īut in RHEL/CentOS 6, the /etc/localtime file will most likely be an actual copy of one of the timezone files from /usr/share/zoneinfo/., not a link. If the TZ environment variable is set, that's the timezone but if it's not set, the system default timezone is determined by /etc/localtime.


First, you'll have to determine what the current time zone setting is.
