How to change Date, Time , Zone on linux server?

You can use date command to display the current date and time
# date
Tue May 11 22:27:44 CET 2010

Set Date:

Use the following syntax to set new data and time:
[HTML]date set=”STRING”[/HTML]

Refer the below example :-
#date -s “23 June 2013 18:00:00″

Set Time:
To set time use the following syntax:
# date +%T -s “05:10:15″

Where,
* 05: Hour (hh)
* 10: Minute (mm)
* 15: Second (ss)

To change timezone

The file /etc /localtime, is copy of a file which has details about your time zone. The Zone information file is located at /usr/share/zoneinfo and this depends on your distribution.

[HTML]
cd /etc/

ln -sf /usr/share/zoneinfo/EST localtime
[/HTML]

If you wish to set up  to IST (Asia/Calcutta):

ln -sf /usr/share/zoneinfo/Asia/Calcutta localtime

  • 2 Users Found This Useful
Was this answer helpful?

Related Articles

Can I use my domain name or must I use my IP address as the hostname for FTP?

Using your IP address (192.168.22.22  is an example IP address) is the preferred entry for...

Can you transfer my sites from my current host to my new VPS?

Yes. We will transfer all of your sites free* of charge and will assure that you experience no or...

Do you allow MP3 files? Do you allow streaming of videos?

Yes we do with our special plans at http://hostripples.in/avs-hosting.php

Do you support Cold Fusion?

We do not support or Cold Fusion on our shared hosting servers, however you are more than welcome...