Activities

February 2011
M T W T F S S
« Jan   Mar »
 123456
78910111213
14151617181920
21222324252627
28  

Identify the Time Zone from the SSH

I want to change the timezone on my remote linux server. I can see the time zone by ‘date” command. But for the time coversion between the different time we need to know the exact “Zone Name” which is used like IST,PST,EDT etc. So that we can convert time easily using any of free website avail.

[root@rc-040 ~]# cat /etc/sysconfig/clock
# The ZONE parameter is only evaluated by system-config-date.
# The timezone of the system is defined by the contents of /etc/localtime.

ZONE="Asia/Kolkata"

UTC=true
ARC=false
Php hacks is
[root@host ~]# php -r ‘phpinfo();’ | grep “timezone”
Default timezone => America/New_York
date.timezone => no value => no value

If you want to change to some other zone by executing follwoing commands,
[root@rc-025 ~]# system-config-time

This site would be helpful to know the exact time difference between the different Time zones.

http://www.timezoneconverter.com/cgi-bin/tzc.tzc

Leave a Reply

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>