General
cancel
Showing results for 
Search instead for 
Did you mean: 

Regarding changing time zone to GMT0

SOLVED
Go to solution
Minoru Asano
Frequent Advisor

Regarding changing time zone to GMT0

Hello,

I would like to know how to change time zone to GMT0

[ENVIRONMENT]
RHEL ES 4 up2

[SITUATION]
I found the following KB.
http://kbase.redhat.com/faq/FAQ_35_3981.shtm
So I think that we can change time zone to GMT0 using following steps:
1. Change "GMT0" at ZONE argument at /etc/sysconfig/clock
2. Run "ln -sf /usr/share/zoneinfo/GMT0 /etc/localtime".

[QUESTION]
- Are above steps correct ?
- Why does not GMT0 appear with timeconfig ?
- Regarding timeconfig command, does timeconfig command perform only symbolic link ?
- Should we copy "/usr/share/zoneinfo/GMT0 to /etc/localtime ?

Thank you for advice.
Best Regards.
/Minoru.
4 REPLIES
Ivan Ferreira
Honored Contributor
Solution

Re: Regarding changing time zone to GMT0

- Are above steps correct ?

Almost. It's normally not recommended to have a symlink to /etc/localtime, but this depends of the configuration, normally, because /usr could be a different mount point and not be available at some situations, so, it's better to copy the file over /etc/localtime.

- Why does not GMT0 appear with timeconfig ?

I don't know. Maybe you see UTC or GMT that it's the same.

- Regarding timeconfig command, does timeconfig command perform only symbolic link ?
- Should we copy "/usr/share/zoneinfo/GMT0 to /etc/localtime ?

See answer 1.

Cheers.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
skt_skt
Honored Contributor

Re: Regarding changing time zone to GMT0

what about trying some thing similar to this.

[kumarts@adedla63p kumarts]$ date
Tue Jul 3 23:03:12 EDT 2007
[kumarts@adedla63p kumarts]$ TZ=BRT
[kumarts@adedla63p kumarts]$ export TZ
[kumarts@adedla63p kumarts]$ date
Wed Jul 4 03:04:22 BRT 2007
Sac_3
Frequent Advisor

Re: Regarding changing time zone to GMT0

Try the command "tzselect".

The tzselect program asks the user for information about the current location, and outputs the resulting time zone description to standard output.

The output is suitable as a value for the TZ environment variable.

Here is the output:

[root@Test ~]# tzselect
Please identify a location so that time zone rules can be set correctly.
Please select a continent or ocean.
1) Africa
2) Americas
3) Antarctica
4) Arctic Ocean
5) Asia
6) Atlantic Ocean
7) Australia
8) Europe
9) Indian Ocean
10) Pacific Ocean
11) none - I want to specify the time zone using the Posix TZ format.
#?
TY 007
Honored Contributor

Re: Regarding changing time zone to GMT0

Hello,

# cd /etc
# mv localtime localtime.bak
# timeconfig

Verify new /etc/localtime file is created:
# ls -al /etc/localtime

Verify Date & Time:
# date
# date -u

Thanks