Couple of things you might want to know about time.
There are two clocks in your system, the hardware clock and the system clock. The hardware clock, a chip, is kept running by the CMOS battery on the motherboard of your computer and the system clock is run by the kernel; it's software. The system clock get set when you boot the system from the hardware clock, the hardware is set from the system clock when you shut down the system.
The
timconfig utility is how you configure your system for the time zone it lives in; you should have used that when you installed Slackware to set the time zone. An additional setting is that you have set your system clock to either your actual timezone or you have set it to UTC (it's suggested to set to UTC unless you're dual booting with Windows-something). Setting it to UTC does not affect your timezone, so be sure to set that correctly) -- your timezone takes care of daylight time switches on the right date and time.
Look at /etc/adjtime, it should look something like this if set to UTC:
Code:
cat /etc/adjtime
-0.196475 1457006506 0.000000
1457006506
UTC
If that last line doesn't say UTC, you're hardware clock and system clock are at the same time.
As @dugan suggests, you can use the
ntpdate utility to set the time correctly once you have an active network connection.
ntpdate sets the system clock, not the hardware clock (that won't get set until you shut the system down).
It's usually a good idea to have the NTP daemon running on your system. You can use the default
/etc/npt.conf file (don't twiddle it unless you know what you're doing) and just
Code:
su -
chmod 755 /etc/rc.d/rc.ntpd
which makes it start at boot time and stop at shutdown.
You can start it manually:
Code:
su -
/etc/rc.d/rc.ntpd start
Only do that once (the daemon starts and you don't want two [or more] daemons running, use
/etc/rc.d/rc.ntpd stop first).
Your hardware clock needs to be withing 5 minutes of actual time for the NTP daemon to set it. You can use the above described way to set the hardware clock or you can get into the BIOS and set it there to the correct time before booting.
Hope this helps some.