From mboxrd@z Thu Jan 1 00:00:00 1970 From: Karunambaran A Subject: Problem in clock setting Date: Sat, 31 May 2003 04:22:32 +0530 Sender: linux-admin-owner@vger.kernel.org Message-ID: <20030531042233.713c7bf9.sangel@eth.net> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: List-Id: Content-Type: text/plain; charset="us-ascii" To: linux-admin@vger.kernel.org Hi, I have installed RedHat Linux 9.0 in my home PC. My BIOS clock is set to local time. During installation of RH 9.0 I have selected my time zone as Asia/Calcutta and the UTC box unchecked. But while booting I am getting the message as if the hardware clock is set UTC and as a result the system clock is set 5 hrs 30 minutes more to make it IST(Asia/Calcutta). But since my hardware clock is already IST localtime it results a wrong system clock. I am able to solve the problem by adding the command "/sbin/hwclock --hctosys " at the end of /etc/rc.d/rc.sysinit file ( before the " wait " ). In rc.sysinit file there is one command " /sbin/hwclock $CLOCKFLAGS " I have echoed the CLOCKFLAGS variable and it shows as I expected the following --hctosys --localtime My question is why the time is recognized as UTC ?( Other OS in my PC does not have any problem in the clock. I have been installing all RH versions since 6.2 and this problem is for the first time. Also, in my office PC I installed RH 9.0 and the clock is fine) Thanks in advance for any reply. Sorry if I am not properly conveying my problem.