Someone told me that a admin did know how to set the time on linux server.
Well… I myself took time on computers to be running well for granted too.
But when the time is set incorrectly on my server, it caused some havoc - date and times of blog posts will go off.
2 things to take note.
- TimeZone
- Hardware Clock
Using the date command throws me EDT timing. (Could it be the regional settings?)
So I used “date -u” which is for universal time or Greenwich Mean Time. or GMT 0.
How to set date? Using this [MMDDhhmm[[CC]YY][.ss]],
So something like this “date -u 07022345″ would set time to July 2nd, 11.45pm at universal time.
What i didnt know that this do not change the hardware time. When the server was restarted, the time will not be accurate again.
The solution?
“hwclock –utc –systohc”
will set the time of the system to the hardware.
Next stop? Using NTP to adjust your time accurately automatically.

0 Responses to “Setting the clock on Debain Linux”
Leave a Reply