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 3748 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 - 30-Day Money Back
cPanel Web Hosting - cPanel Hosting in India.
Grab a Free SSL for your website.  WordPress Optimized Solution.

MilesWeb Hosting Forum

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