From owner-freebsd-bugs Wed Apr 10 3:30:14 2002 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 0BFA537B416 for ; Wed, 10 Apr 2002 03:30:01 -0700 (PDT) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g3AAU1D32747; Wed, 10 Apr 2002 03:30:01 -0700 (PDT) (envelope-from gnats) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 5C84D37B41E for ; Wed, 10 Apr 2002 03:20:18 -0700 (PDT) Received: (from nobody@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g3AAKI831010; Wed, 10 Apr 2002 03:20:18 -0700 (PDT) (envelope-from nobody) Message-Id: <200204101020.g3AAKI831010@freefall.freebsd.org> Date: Wed, 10 Apr 2002 03:20:18 -0700 (PDT) From: Hisao Tsuyuki To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-1.0 Subject: bin/36960: calendar doesn't effect -t option. Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 36960 >Category: bin >Synopsis: calendar doesn't effect -t option. >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Apr 10 03:30:00 PDT 2002 >Closed-Date: >Last-Modified: >Originator: Hisao Tsuyuki >Release: 4.4-RELEASE >Organization: Connect Corporation >Environment: FreeBSD 4.4-RELEASE FreeBSD 4.4-RELEASE #0: Tue Sep 18 11:57:08 PDT 2001 murray@builder.FreeBSD.org:/usr/src/sys/compile/GENERIC i386 >Description: calendar doesn't effect -t option. >How-To-Repeat: Any -t option doesn't effective. >Fix: --- /usr/src/usr.bin/calendar/day.c Sun Feb 4 23:58:29 2001 +++ day.c Wed Apr 10 17:26:58 2002 @@ -176,6 +176,9 @@ tm.tm_min = 0; tm.tm_hour = 0; tm.tm_wday = 0; + tm.tm_isdst = tp->tm_isdst; + tm.tm_zone = tp->tm_zone; + tm.tm_gmtoff = tp->tm_gmtoff; tm.tm_mday = tp->tm_mday; tm.tm_mon = tp->tm_mon; tm.tm_year = tp->tm_year; @@ -194,8 +197,7 @@ } #ifdef DEBUG - fprintf(stderr, "Mktime: %d %d %d %s\n", (int)mktime(&tm), (int)t, len, - asctime(&tm)); + fprintf(stderr, "Mktime: %d %d %s\n", (int)mktime(&tm), (int)t, asctime(&tm)); #endif return(mktime(&tm)); } >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message