troubles with time

i made an error during LINUX installation: i choosed a wrong time (an hour in advance). How may i put all right now?

date --set='-1 hour' works, but just until the next reboot
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

If you take a look at /etc you'll see that the file /etc/localtime is actually a symbolic link to a time file located (on redhat 6.0) in /usr/share/zoneinfo/...
All you have to do to change your timezone is remove this file and make a new symbolic link to your particular timezone.

If your problem is the actual time, then make sure that your BIOS is correct because linux gets the time from there.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Step 1:
date --set='-1 hour'

Step 2:
/sbin/clock -w

For more detail, type /sbin/clock -XXX
Some distribution may put the 'clock' to somewhere
else, search for /bin/clock,  /usr/bin/clock, /usr/sbin/clock.

Also, make sure you are not running the 'clock' program for windows, which will present you a clock on the screen.

to config to another timezone, login root and type


Oh. This is for Slackware Linux.  I don't know if other distribution has this script.  :-)
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.