> On Wed, 26 Jun 2002, Azman Salleh wrote: > > > All I did was export TZ=Asia/Kuala_Lumpur; changed the time back to the > > right one. > > Now I've solved the problem. > > > > I put the export TZ statement in /etc/profile so that TZ won't change on > > next reboot. > > That only changes the reported TZ for your login sessions, not the > system timezone. > > The redhat configuration gui has a selector for this.You can also try > running timeconfig or zoneconfig (sometimes installed on linux boxes, > depending on the distribution.). > > AB
Yes, this isn't what you want to be doing really... it just sets your preferred timezone for your login session... if you look at the date output from something like PHP in a web browser, you'll find that the system itself it still in the wrong timezone. You can use the GUI or config tools to do this, but as a command line person myself, the actual way to do it is to copy the appropriate file from /usr/share/zoneinfo to /etc/localtime, or symlink it if you like. cp /usr/share/zoneinfo/GMT /etc/localtime will put you nicely in GMT. James
