Question on date and timezone in Linux

Posted by LinuxPenseur on Server Fault See other posts from Server Fault or by LinuxPenseur
Published on 2010-12-31T08:45:11Z Indexed on 2010/12/31 8:55 UTC
Read the original article Hit count: 259

Filed under:
|
|
|

Hi ,

I did the date command and it gave the following output

root@localhost:~$ date
Thu Dec 30 14:19:47 UTC 2010

Then i modified the date using date -s command whichn gave the following output

root@localhost:~$ date -s "12/30/2010 JST 14:19:47"
Thu Dec 30 05:19:47 UTC 2010

I noticed that the time changed to 9 hours behind UTC time to show exactly the JST time. But timezone as you can see is still showing UTC. Why is it showing the correct time and incorrect timezone?

Thanks

© Server Fault or respective owner

Related posts about linux

Related posts about unix