Posts: 148
cousinlucky
Joined: 24 Aug 2012
#1
The clock program comes up I enter America and then New york and the automatic tz setting is wrong by 4 hours. Is there a way to manually put the correct time into Antix? Thanks.
Posts: 4,164
rokytnji
Joined: 20 Feb 2009
#2
Check Bios Time. Sounds like maybe your cmos battery is getting old and not keeping time right. It is just a watch battery you can get from any drug store by the way.
Posts: 609
dark-D
Joined: 02 Jun 2008
#3
first use dpkg-reconfigure tzdata as root. (from what i read, you used it)
second on some computers, the system uses the bios time. and if you use dual boot windows, it messes with the bios time settings, changing the time. for this not to happen edit as root the file

Code: Select all

/ etc/default/rcS
and edit the line

Code: Select all

 # assume that the BIOS clock is set to UTC time (recommended)
UTC=yes
usage:
set UTC=yes if your hardware clock is set to UTC (GMT), or UTC=no to have the hardware clock set to local time.
for windows you have to edit the registry, can't help you there because i don't use it.
Posts: 148
cousinlucky
Joined: 24 Aug 2012
#4
I think I'll just change the location to London or Ireland.
Posts: 88
kmathern
Joined: 25 Aug 2012
#5
dark-D wrote:... edit as root the file

Code: Select all

/ etc/default/rcS
and edit the line

Code: Select all

 # assume that the BIOS clock is set to UTC time (recommended)
UTC=yes
usage:
set UTC=yes if your hardware clock is set to UTC (GMT), or UTC=no to have the hardware clock set to local time. ....

This just changed recently (9/1) if you're running a up-to-date wheezy install. In sid & wheezy the UTC variable in the /etc/default/rcS file isn't used anymore, it's now in the /etc/adjtime file.

snippet from `man rcS`
NOTE
The EDITMOTD, RAMRUN and UTC variables are no longer used. ....The UTC setting is replaced by the UTC or LOCAL setting in /etc/adjtime, and should have been migrated automatically. See hwclock(5) and hwclock(8) for further details on configuring the system clock....
For the three minute discrepancy you can run (as root)

Code: Select all

ntpdate-debian
{you need to be connected to the internet when you run it}
Posts: 96
melodie
Joined: 15 Feb 2008
#6
cousinlucky wrote:I think I'll just change the location to London or Ireland.
If the battery maintaining the BIOS of your machine is flat, you could walk on hands that would not help. If you have setup the timezone correctly, and if it has 4 hours delay it is not even a matter of dual-booting Windows : unless Windows configuration is that wrong.

The timezone once configured, if ntpd is running in your machine/or you run manually"ntpdate <some time server>" and the machine connected to the web, the time is adjusted automatically.

ie:

Code: Select all

# ntpdate pool.ntp.org
 4 Sep 10:07:40 ntpdate[1152]: adjust time server 81.19.16.225 offset 0.003884 sec
I suggest you try to find out where the battery is located, get a new one, reconfigure the timezone and let us know if that works.
Posts: 148
cousinlucky
Joined: 24 Aug 2012
#7
I changed the location to Belfast so my computer clock is now 56 minutes early. I only have this problem with AntiX; none of the other operating systems I have recently looked at on my computer have had this problem.
Posts: 4,164
rokytnji
Joined: 20 Feb 2009
#8
On this IBM M41 I got back after loaning it out for a couple of years. The bios fails to keep proper time so I set the bios time every time I boot up first cuz. I have the same problem on my IBM T23 Laptop also.
Posts: 148
cousinlucky
Joined: 24 Aug 2012
#9
A guy at the supermarket told me that the clock in my computer is probably wrong because my hard drive had been replaced.
Posts: 96
melodie
Joined: 15 Feb 2008
#10
cousinlucky wrote:A guy at the supermarket told me that the clock in my computer is probably wrong because my hard drive had been replaced.
__{{emoticon}}__

This guy probably needs to learn a few things before providing statements about subjects he does not know.

It makes me think of a little story which happened a few weeks ago close to where I live. A guy in a heating devices store told me that the Linux Kernel is not Free (not free of charge) in fact : it is free if you take the old version of last year, but the new versions are sold for money. I started laughing silently after he talked and I told him"I didn't know that ! Where did you get the information ?" and he said with a bit of sneer"go to the web ! it's written there". Then I started laughing really loud and told him the free software community would know and about the license.

He had read that in some shadowy magazine and he thought he had a scoop.

If changing a hard drive changes the time in the BIOS, this would really be a scoop ! (and a bit scary too).

PS: in the antiX-CC start the services, in that text mode service configuration, find the line for ntp, or ntpd, and tick the columns 2 3 4 5 so that ntpd be started during the boot. This should allow ntpdate to keep the right time.