Operating System - Linux
1829193 Members
2799 Online
109986 Solutions
New Discussion

exporting TIMEZONE variable "ZONE" in Redhat

 
SOLVED
Go to solution
Randy_9
Regular Advisor

exporting TIMEZONE variable "ZONE" in Redhat

How do I set the TIMEZONE variable "ZONE"
(in the file /etc/sysconfig/clock) for Redhat,
so it is known to all when they logon.
The date command supplies the correct date/time, but "echo $ZONE" is null. Do I
need to make a special entry in /etc/profile?.

Thanks,
Randy
2 REPLIES 2
Caesar_3
Esteemed Contributor
Solution

Re: exporting TIMEZONE variable "ZONE" in Redhat

Hello!

You shuld know that in linux
is a difrent methods that create TIMEZONE
you will need to compile the timezone with:
"zic".

Check in man how to use with.

Caesar
Manuel Wolfshant
Trusted Contributor

Re: exporting TIMEZONE variable "ZONE" in Redhat

use the program dateconfig. or edit the /etc/sysconfig/clock directly using any ASCII editor, assuming you know the valid names of the timezones.