MilesWeb
MilesWeb Hosting Forum

Please login or register.

Login with username, password and session length

 

News:

SMF - Just Installed!


Author Topic: How to change the system clock to UTC in linux server ?  (Read 3420 times)

0 Members and 1 Guest are viewing this topic.

Offline Dipak Bhoi

  • MilesWeb Team Member
  • Full Member
  • ***
  • Posts: 208
  • Karma: +5/-0
    • View Profile
    • MilesWeb Internet Services
How to change the system clock to UTC in linux server ?
« on: July 21, 2014, 10:58:54 AM »
Hello guys,

This post will help you to change timezone to UTC on your server.

You need to login to your server and follow the following steps to set UTC as a system clock.

#vi /etc/sysconfig/clock

And change the UTC line to: "UTC=true"

Set localtimezone to UTC:

Quote
#ln -sf /usr/share/zoneinfo/UTC /etc/localtime

Now run date command and it will show you UTC time.

Quote
#date
Mon Jul 21 01:27:15 UTC 2014


Enjoy !!
MilesWeb.com
cPanel Hosting in India - cPanel Hosting in India.

Grab an SSL for your website and SAVE 20% now. Coupon Code SSLSAVE20.

MilesWeb Hosting Forum

How to change the system clock to UTC in linux server ?
« on: July 21, 2014, 10:58:54 AM »