Date: Wed, 10 Apr 2002 03:20:18 -0700 (PDT) From: Hisao Tsuyuki <tsuyuki@st.rim.or.jp> To: freebsd-gnats-submit@FreeBSD.org Subject: bin/36960: calendar doesn't effect -t option. Message-ID: <200204101020.g3AAKI831010@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200204101020.g3AAKI831010>
