SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I must have accidently set a wrong setting in the config of Slack. But somehow my time got knocked about 4 hours off. There is no option to change the time but i know there is some way. How do I change the time of the clock.
That happened to me, too, somehow. It's actually the 'date' command but when I tried to fix it I ended up in 1977 - couldn't get the syntax right for some reason - so I just reset it from the BIOS.
-- Oh, and during setup you're given the option of 'universal time coordinate' or 'local' and you'll probably want local. I think installing Mandrake screwed mine up, but I'm not sure how, as it's local and I always say local whenever the issue comes up.
This has to be run as root. you have to specify at least the month, day, hour, and minute, so to set the time to 4:00 PM on August 7th, you would run the command date 08071600.
If you need to change the year you can add the year onto the end of the number, and if you want to set it down to the second, you use a period, then the number of seconds, at the very end of the number. So, to set it to 4:00:23 PM on August 7th, you would use date 08071600.23. And in the case of it having been set back to 1977 like digiot mentioned, you would just use the command date 080716002003.23 to set it to the appropriate year.
Hey thanks for the info. I got it changed right away. Also I did try using man and whereis but not for date i used the word clock because that what the clock program is called. It turned out to be some program to measure your cpu. Thanks again.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.