From owner-freebsd-questions@FreeBSD.ORG Tue Oct 25 23:30:38 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3DC6F16A41F for ; Tue, 25 Oct 2005 23:30:38 +0000 (GMT) (envelope-from gouda422@yahoo.com) Received: from web36315.mail.mud.yahoo.com (web36315.mail.mud.yahoo.com [209.191.84.245]) by mx1.FreeBSD.org (Postfix) with SMTP id C1F5943D48 for ; Tue, 25 Oct 2005 23:30:37 +0000 (GMT) (envelope-from gouda422@yahoo.com) Received: (qmail 5152 invoked by uid 60001); 25 Oct 2005 23:30:37 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=gB9YpJI4WDBuXwNiFy17DrstkaRCAbGvWqWV7hfxV1XiG00Idy6YTzQC1k7eP6N/8huA56r+7ZiOi8pRm6gqGPnZ3ittxJkXOjg2MsbquOiLP+ateLHuMy8hB0tm2U3zCRx5x7Jq0EyJjnoGvGQrzLSYT6rotnpYAT9BHrxJ9ns= ; Message-ID: <20051025233037.5150.qmail@web36315.mail.mud.yahoo.com> Received: from [66.129.224.36] by web36315.mail.mud.yahoo.com via HTTP; Tue, 25 Oct 2005 16:30:37 PDT Date: Tue, 25 Oct 2005 16:30:37 -0700 (PDT) From: Prakash GP To: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Subject: switch to/from Daylight savings doesn't happen X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 25 Oct 2005 23:30:38 -0000 Hi, FreeBSD 4.5 doesn't seem to auto-switch to/from DST at the right time. ----------%<----------%<----------%<----------%<----------%<---------- # setenv TZ :/usr/share/zoneinfo/America/Los_Angeles # /bin/date Tue Oct 25 15:40:10 PDT 2005 # /bin/date 200510300159 Sun Oct 30 01:59:00 PST 2005 <-- should be PDT ? ----------%<----------%<----------%<----------%<----------%<---------- Oct 30, 1:59 falls under PDT, instead `date` command returns PST. I am sure I have the right tzfile. The following change in date.c seems to fix the problem; the PDT->PST switch happens automatically at oct 30 2.00am. Not sure if that's the way to fix it. Index: date.c =================================================================== @@ -270,8 +270,6 @@ setthetime(fmt, p, jflag, nflag) } } - /* Let mktime() decide whether summer time is in effect. */ - lt->tm_isdst = -1; /* convert broken-down time to GMT clock time */ if ((tval = mktime(lt)) == -1) Thanks, Prakash __________________________________ Yahoo! Mail - PC Magazine Editors' Choice 2005 http://mail.yahoo.com