Click to See Complete Forum and Search --> : Tzselect time change


re-v
10-23-2002, 08:08 PM
I need to change the time on my machine.

For some reason gnome is 4 hours behind. I changed the time using TZselect binary in /usr/bin
As long as I use that terminal the time is correct.
However, if I boot another terminal and all my other
processes are using the old(wrong time)
The tzselect says to go to your home directory and chance .profile. log out and in to make a permanent change.
I run Mandrake and therei s no .profile in my home other than .bash.profile and the script has only 13 lines and nothing about a TZ enviroment variable.
I also looked in /etc can't find where to make the change permanent
TIA
Mike Reavey

sasKuatch
10-23-2002, 08:25 PM
assuming I understand, you simply run this time program and it sets the time?

If that is the case, you can put it in you .bash_profile, and it will run on login, setting the time correctly for all terminals.

re-v
10-24-2002, 06:46 AM
Added TZ ='GST-0'; export TZ
to .bash_profile, reboot system'
did not correct the problem.
is there another way to define time.

sasKuatch
10-24-2002, 11:46 AM
I don't know, I set the time once (in the BIOS) when I bought my puters and never touched it since

re-v
10-24-2002, 06:30 PM
found the answer
google search "set time in linux"


1) for date and time 10/24/02 7.15am

# date 1024020715

2) #/sbin/hwclock --systohc

the second step set the hardware clock to sys clock

Thanks for your help

RE-v

sasKuatch
10-24-2002, 08:28 PM
Originally posted by re-v


Thanks for your help

RE-v

No no, thank YOU. You helped me:)