When setting the date, ask mktime() to work out whether we're in DST or not.

Seems to fix PR bin/8750.
This commit is contained in:
bjh21 2000-10-08 10:30:44 +00:00
parent 0040b133c2
commit a17ce6ad1e

View File

@ -1,4 +1,4 @@
/* $NetBSD: date.c,v 1.30 2000/04/14 05:52:57 simonb Exp $ */
/* $NetBSD: date.c,v 1.31 2000/10/08 10:30:44 bjh21 Exp $ */
/*
* Copyright (c) 1985, 1987, 1988, 1993
@ -44,7 +44,7 @@ __COPYRIGHT(
#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.31 2000/10/08 10:30:44 bjh21 Exp $");
#endif
#endif /* not lint */
@ -152,6 +152,8 @@ setthetime(p)
lt = localtime(&tval);
lt->tm_isdst = -1; /* Divine correct DST */
if (dot != NULL) { /* .ss */
len = strlen(dot);
if (len != 3)