From owner-freebsd-questions Tue Jan 18 4:32:54 2000 Delivered-To: freebsd-questions@freebsd.org Received: from yana.lemis.com (yana.lemis.com [192.109.197.140]) by hub.freebsd.org (Postfix) with ESMTP id CA19614CAF for ; Tue, 18 Jan 2000 04:32:48 -0800 (PST) (envelope-from grog@mojave.worldwide.lemis.com) Received: from mojave.worldwide.lemis.com ([203.197.137.147]) by yana.lemis.com (8.8.8/8.8.8) with ESMTP id XAA03325; Tue, 18 Jan 2000 23:01:35 +1030 (CST) (envelope-from grog@mojave.worldwide.lemis.com) Received: (from grog@localhost) by mojave.worldwide.lemis.com (8.9.3/8.9.3) id RAA01115; Tue, 18 Jan 2000 17:17:33 +0530 (IST) (envelope-from grog) Date: Tue, 18 Jan 2000 17:17:33 +0530 From: Greg Lehey To: freebsd-questions@FreeBSD.ORG Cc: Satyajit Das Subject: Re: time and Date problem Message-ID: <20000118171732.I777@mojave.worldwide.lemis.com> Reply-To: Greg Lehey References: <3882DBCD.9AE54F6A@spnetctg.com> <3883BB06.819D5C0E@softweyr.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: <3883BB06.819D5C0E@softweyr.com>; from wes@softweyr.com on Mon, Jan 17, 2000 at 05:59:50PM -0700 WWW-Home-Page: http://www.lemis.com/~grog X-PGP-Fingerprint: 6B 7B C3 8C 61 CD 54 AF 13 24 52 F8 6D A4 95 EF Organization: LEMIS, PO Box 460, Echunga SA 5153, Australia Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-41-739-7062 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Monday, 17 January 2000 at 17:59:50 -0700, Wes Peters wrote: > Satyajit Das wrote: >> >> hello >> >> I'm from bangladesh. >> I install FBSD 3.3 . >> FBSD shows 12 hours advanced from current time and also date. >> when i install i select Bangladesh . >> please inform how can i fix my current time and date. > > I have forwarded your question and directed replies to the FreeBSD-questions > mailing list, as this is the appropriate place to find answers for this kind > of question. > > Now, to attempt to answer it: when you were installing, do you remember the > install program asking you if your CMOS clock is set to local time or GMT > time? I suspect you answered that question wrong. For more information, > see "man adjkerntz". > > Basically, if your BIOS/CMOS clock is set to the local time, you need to > create a file called /etc/wall_cmos_clock. You can do this by typing (as > root): > > touch /etc/wall_cmos_clock > > If your BIOS/CMOS clock is set to GMT, remove the /etc/wall_cmos_clock file > so your computer will know the clock is on GMT at startup. > > Lastly, be sure your CMOS clock, which is accessible from the BIOS setup > screens, is correct. The issue of adjkerntz doesn't change the relationship between UTC and local time (which appears to be called BDT). It works fine for me here: $ date Tue Jan 18 17:13:13 IST 2000 $ TZ=Asia/Dacca date Tue Jan 18 17:43:22 BDT 2000 Since I'm in India, that seems about right. To set your time zone, take a look at the files in the subdirectories of /usr/share/zoneinfo: $ ls -RFC /usr/share/zoneinfo/ Africa/ Atlantic/ EST GMT MST7MDT posixrules America/ Australia/ EST5EDT HST PST8PDT zone.tab Antarctica/ CET Etc/ Indian/ Pacific/ Arctic/ CST6CDT Europe/ MET SystemV/ Asia/ EET Factory MST WET ... /usr/share/zoneinfo/Asia: Aden Bishkek Irkutsk Kuching Rangoon Tokyo Almaty Brunei Istanbul Kuwait Riyadh Ujung_Pandang Amman Calcutta Jakarta Macao Saigon Ulan_Bator Anadyr Chungking Jayapura Magadan Samarkand Urumqi Aqtau Colombo Jerusalem Manila Seoul Vientiane Aqtobe Dacca Kabul Muscat Shanghai Vladivostok Ashkhabad Damascus Kamchatka Nicosia Singapore Yakutsk Baghdad Dubai Karachi Novosibirsk Taipei Yekaterinburg Bahrain Dushanbe Kashgar Omsk Tashkent Yerevan Baku Gaza Katmandu Phnom_Penh Tbilisi Bangkok Harbin Krasnoyarsk Pyongyang Tehran Beirut Hong_Kong Kuala_Lumpur Qatar Thimbu Choose one that looks likely (Dacca in your case) and copy it to /etc/localtime: # cp /usr/share/zoneinfo/Asia/Dacca /etc/localtime Greg -- When replying to this message, please copy the original recipients. For more information, see http://www.lemis.com/questions.html Finger grog@lemis.com for PGP public key See complete headers for address and phone numbers To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message