Portal Home > Knowledgebase > Articles Database > Server time is not correct
Server time is not correct
Posted by FlyingWay, 03-02-2010, 07:23 AM |
The time displayed in the server is not matching real GMT time
How to correct server CLOCK time using SHELL commands?
|
Posted by david510, 03-02-2010, 07:28 AM |
To set the server time to GMT use the following commands.
|
Posted by FlyingWay, 03-02-2010, 07:46 AM |
Thanks, but still time didn't change
|
Posted by madaboutlinux, 03-02-2010, 08:01 AM |
Is the time zone set correctly on the server? BTW, is this a Dedicated server or a VPS?
If it's a VPS, you need to ask your hosting provider to correct the time on the host server. The problem is not with the VPS then.
If it's a Dedicated server and the timezone is correct, execute
|
Posted by inspiron, 03-02-2010, 08:04 AM |
Login as root to the server, first execute the command to display the current date and time,
#date
Now, execute in this format to set the new date and time:
root@myserver [~]# date --set='Wed Aug 27 22:00:00 CDT 2008'
then again execute command #date see if it has changed. Hope this will help.
|
Posted by FlyingWay, 03-02-2010, 08:10 AM |
Thanks,
It's Dedicated server ,
I select GMT time from control Panel (WHM), But the server time is not correct as real GMT time, it's less by 23 minutes
I execute that command , But nothing changed in the server clock time
Right now GMT is (12:07PM) but the time shown in my server is (11:44 AM)
|
Posted by FlyingWay, 03-02-2010, 08:24 AM |
Thanks, so much
This command work correctly after correcting time and date with real time and date
|
Posted by servertechs, 03-02-2010, 08:25 AM |
You would need to setup ntpd and sync it with the time server.
|
Posted by RDSNetworking, 03-02-2010, 08:49 AM |
Try the following
|
Posted by esupports, 03-02-2010, 03:52 PM |
Hello,
Please refer the following link,
http://www.wikihow.com/Change-the-Timezone-in-Linux
|
Posted by shawn_linux, 03-02-2010, 04:02 PM |
Ask hosting top replace the cmos battery of the server.
|
Posted by FlyingWay, 03-02-2010, 05:33 PM |
Thanks
I will try that
|
Add to Favourites Print this Article
Also Read