From MEPIS Documentation Wiki
(This entry is taken from a post on the antiX Forum by BitJam about time problems)
If your clock time is always wrong, there are 4 possible issues:
- wrong timezone
- wrong selection of UTC versus local time
- BIOS clock set wrong
- time drift
The first issue is addressed by opening a root terminal and entering
Do this first. You should also be able to just check the current value with "cat /etc/timezone".
Selection of UTC/local time
Once you are sure the timezone is correct, you can work on setting your BIOS clock. Do this with the [code]hwclock[/code] command. First do a
and then run
to see what it is set to. It always reports in local time which is why you need to first make sure your timezone is set correctly.
or hwclock --utc depending on whether you want your hardware clock to be set to localtime or utc. Most pure Linux systems use utc. Most dual boot systems use localtime.
Then, after you get your date command working via the sudo command you posted, you can use "hwclock --systohc" to set the hardware clock so it matches your system time. Again, you need the timezone and localtime/utc choice set correctly first (although if you want to *assume* they are set correctly already then this is the only command you need to run to get your changes to the "date" command to stick. If you assumed incorrectly then you will likely get mysteriously screwed by DST a few times per year).
Finally, if you are having problems with hwclock drift or if you are a perfectionist then you can install the [b]ntp[/b] package which will use time servers on the net to keep your clock exactly on time. But you have to first go through the steps above before ntp will work correctly.