Date and time change in server

Description of your first forum.
Post Reply
babitaacharya644
Posts: 7
Joined: Wed Jan 21, 2015 4:17 pm

Date and time change in server

Post by babitaacharya644 » Thu May 14, 2015 9:31 am

Please help me,
How to modify default date and time zones for CentOS server?


Thanks

archangevictoria
Posts: 8
Joined: Wed Jan 21, 2015 4:14 pm

Re: Date and time change in server

Post by archangevictoria » Fri May 15, 2015 9:53 am

Hello
This command will help you out


Type the following commands as root:

cp /etc/localtime /root/old.timezone
rm /etc/localtime
ln -s /usr/share/zoneinfo/America/Chicago /etc/localtime

laurencecatherine741
Posts: 9
Joined: Wed Jan 21, 2015 4:11 pm

Re: Date and time change in server

Post by laurencecatherine741 » Wed May 20, 2015 10:30 am

To show the current timezone in the file /etc/timezone, use the command:

cat /etc/timezone

To change this to the U.S. Los Angeles time, we need to modify the /etc/timezone file.

First step: edit the /etc/timezone file via vim or nano.

Vi editor:

vi /etc/timezone

Nano editor:

nano /etc/timezone

Second step: modify the file as shown below:

America/Los_Angeles

set the timezone from the terminal using the TZ variable.

export TZ=America/Los_Angeles

bakerashley127
Posts: 10
Joined: Thu Jan 22, 2015 4:17 pm

Re: Date and time change in server

Post by bakerashley127 » Thu Nov 11, 2021 5:54 am

The procedure is straightforward. Click the Adjust date/time option after right-clicking the time box in the lower right corner. You can adjust the time, date, and time zones of each Windows Server in the settings box.

williamnicholas240
Posts: 10
Joined: Thu Jan 22, 2015 5:15 pm

Re: Date and time change in server

Post by williamnicholas240 » Fri Dec 17, 2021 4:39 am

Click Server Time from the left-Server menu's Configuration section. From the drop-down menu, choose the desired time zone. Then select Change Time Zone from the drop-down menu. Click Sync Time with Time Server if your time zone is accurate but the server is out of sync.

Post Reply
cron