Set Time Zone to GMT

Before:

[root@sipgullydb etc]# pwd
/etc
[root@sipgullydb etc]# date
Wed Aug 12 06:56:35 EDT 2009
[root@sipgullydb etc]# date -u
Wed Aug 12 10:56:38 UTC 2009
[ossadmin@sipgullydb etc]$ ls -ltr localtime
-rw-r--r-- 1 root root 3519 May 27 21:42 localtime
  1. Step #1:

    [root@sipgullydb etc]# cp localtime localtime.orig
    
  2. Step #2:

    [root@sipgullydb etc]# rm localtime
    rm: remove regular file `localtime'? y
    
  3. Step #3:

    [root@sipgullydb etc]# ln -s /usr/share/zoneinfo/UTC localtime
    

After:

[root@sipgullydb etc]# date
Wed Aug 12 10:57:39 UTC 2009
[root@sipgullydb etc]# date -u
Wed Aug 12 10:57:41 UTC 2009
[root@sipgullydb etc]# ls -l localtime
lrwxrwxrwx 1 root root 23 Aug 12 10:57 localtime -> /usr/share/zoneinfo/UTC
[root@sipgullydb etc]# pwd
/etc

For more insight on changing the times on your system, take a look at the /usr/share/zoneinfo directory.

[root@sipgullydb etc]# cd /usr/share/zoneinfo
[root@sipgullydb zoneinfo]# ls
Africa Atlantic Chile Eire Factory GMT-0 Iceland Jamaica Mexico NZ posix ROC Universal zone.tab
America Australia CST6CDT EST GB GMT+0 Indian Japan Mideast NZ-CHAT posixrules ROK US Zulu
Antarctica Brazil Cuba EST5EDT GB-Eire Greenwich Iran Kwajalein MST Pacific PRC Singapore UTC
Arctic Canada EET Etc GMT Hongkong iso3166.tab Libya MST7MDT Poland PST8PDT Turkey WET
Asia CET Egypt Europe GMT0 HST Israel MET Navajo Portugal right UCT W-SU

The /etc/localtime points to a file in this directory to set the localtime. Also edit the /etc/sysconfig/clock file, and then restarted the webserver on NexOSS.

[root@sipgullydb zoneinfo]# vi /etc/sysconfig/clock

Before:

# The ZONE parameter is only evaluated by system-config-date.
# The timezone of the system is defined by the contents of /etc/localtime.
ZONE="America/New_York"
UTC=true
ARC=false

After:

# The ZONE parameter is only evaluated by system-config-date.
# The timezone of the system is defined by the contents of /etc/localtime.
ZONE="/Etc/UTC"
UTC=true
ARC=false