Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-1-5]: src/bin/date Pull up revision 1.31 (approved by jhawk):



details:   https://anonhg.NetBSD.org/src/rev/12e1b15b3739
branches:  netbsd-1-5
changeset: 489724:12e1b15b3739
user:      bjh21 <bjh21%NetBSD.org@localhost>
date:      Mon Oct 09 12:09:09 2000 +0000

description:
Pull up revision 1.31 (approved by jhawk):
  Fix off-by-one-hour bug when using date(1) to move between DST and non-DST.
  Fixes PR#8750.

diffstat:

 bin/date/date.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (27 lines):

diff -r 4be86d48e184 -r 12e1b15b3739 bin/date/date.c
--- a/bin/date/date.c   Mon Oct 09 11:08:29 2000 +0000
+++ b/bin/date/date.c   Mon Oct 09 12:09:09 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: date.c,v 1.30 2000/04/14 05:52:57 simonb Exp $ */
+/*     $NetBSD: date.c,v 1.30.4.1 2000/10/09 12:09:09 bjh21 Exp $      */
 
 /*
  * Copyright (c) 1985, 1987, 1988, 1993
@@ -44,7 +44,7 @@
 #if 0
 static char sccsid[] = "@(#)date.c     8.2 (Berkeley) 4/28/95";
 #else
-__RCSID("$NetBSD: date.c,v 1.30 2000/04/14 05:52:57 simonb Exp $");
+__RCSID("$NetBSD: date.c,v 1.30.4.1 2000/10/09 12:09:09 bjh21 Exp $");
 #endif
 #endif /* not lint */
 
@@ -152,6 +152,8 @@
 
        lt = localtime(&tval);
 
+       lt->tm_isdst = -1;                      /* Divine correct DST */
+
        if (dot != NULL) {                      /* .ss */
                len = strlen(dot);
                if (len != 3)



Home | Main Index | Thread Index | Old Index