NetBSD Problem Report #8750

Received: (qmail 8028 invoked from network); 5 Nov 1999 11:09:04 -0000
Message-Id: <199911051108.MAA27509@cactus.emsi.priv.at>
Date: Fri, 5 Nov 1999 12:08:58 +0100 (CET)
From: "Martin J. Laubach" <mjl@emsi.priv.at>
Reply-To: mjl@emsi.priv.at
To: gnats-bugs@gnats.netbsd.org
Subject: /bin/date sometimes an hour off when setting date
X-Send-Pr-Version: 3.95

>Number:         8750
>Category:       bin
>Synopsis:       /bin/date sometimes an hour off when setting date
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    bjh21
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Nov 05 03:12:00 +0000 1999
>Closed-Date:    Mon Nov 13 19:24:00 +0000 2000
>Last-Modified:  Mon Nov 13 19:24:00 +0000 2000
>Originator:     Martin J. Laubach
>Release:        <NetBSD-current source date>
>Organization:

>Environment:

System: NetBSD cactus.emsi.priv.at 1.4M NetBSD 1.4M (CACTUS) #0: Wed Nov 3 02:11:03 CET 1999 mjl@asparagus:/home/temp/devel/cvs/src/sys/arch/i386/compile/CACTUS i386


>Description:
  Setting the date with /bin/date seems to get the time wrong
sometimes. Seems related to the time zone.

>How-To-Repeat:

	hedge# date 199911051202
	Fri Nov  5 11:02:00 CET 1999
	hedge# !!
	date 199911051202
	Fri Nov  5 12:02:00 CET 1999

  This is on an ancient 486/66.

>Fix:
  Try again until the time actually is what you wanted to set?

>Release-Note:
>Audit-Trail:

From: Hal Murray <murray@pa.dec.com>
To: gnats-bugs@netbsd.org
Cc: murray@pa.dec.com
Subject: bin/8750
Date: Sat, 11 Dec 1999 18:34:23 -0800

 I just stumbled into this one.

 I'm pretty sure the interesting case is when the current time is 
 on one side of the DST change and the target time is on the other.

 Here is the printout from my sample:

     foraker# date
     Fri Aug 13 23:04:38 PDT 1999
     foraker# date 9912111815
     Sat Dec 11 17:15:00 PST 1999
     foraker# date 9912111816
     Sat Dec 11 18:16:00 PST 1999
     foraker# 

From: Ben Harris <bjh21@netbsd.org>
To: "Martin J. Laubach" <mjl@emsi.priv.at>, gnats-bugs@netbsd.org
Cc:  
Subject: bin/8750: /bin/date sometimes an hour off when setting date
Date: Sun, 8 Oct 2000 11:39:07 +0100 (BST)

 I think this bug is now fixed in NetBSD-current (date.c rev 1.31), at
 least on my test machine.  Could you please check it works for you?

 -- 
 Ben Harris                                                   <bjh21@netbsd.org>
 Portmaster, NetBSD/arm26               <URL:http://www.netbsd.org/Ports/arm26/>

State-Changed-From-To: open->feedback 
State-Changed-By: bjh21 
State-Changed-When: Sun Oct 8 03:40:17 PDT 2000 
State-Changed-Why:  
I've committed what I hope is a fix. 


Responsible-Changed-From-To: bin-bug-people->bjh21 
Responsible-Changed-By: bjh21 
Responsible-Changed-When: Sun Oct 8 03:40:17 PDT 2000 
Responsible-Changed-Why:  
The fix was committed by me. 
State-Changed-From-To: feedback->closed 
State-Changed-By: tv 
State-Changed-When: Mon Nov 13 08:33:34 PST 2000 
State-Changed-Why:  
Submitter created and verified fix. 

From: Ben Harris <bjh21@netbsd.org>
To: tv@netbsd.org
Cc: gnats-bugs@netbsd.org
Subject: Re: bin/8750
Date: Mon, 13 Nov 2000 18:59:12 +0000 (GMT)

 On 13 Nov 2000 tv@netbsd.org wrote:

 > State-Changed-From-To: feedback->closed
 > State-Changed-By: tv
 > State-Changed-When: Mon Nov 13 08:33:34 PST 2000
 > State-Changed-Why: 
 > Submitter created and verified fix.

 Did they?  The verification didn't make it into the PR, if they did.

 -- 
 Ben Harris                                                   <bjh21@netbsd.org>
 Portmaster, NetBSD/arm26               <URL:http://www.netbsd.org/Ports/arm26/>


From: Todd Vierling <tv@wasabisystems.com>
To: Ben Harris <bjh21@netbsd.org>
Cc: gnats-bugs@netbsd.org
Subject: Re: bin/8750
Date: Mon, 13 Nov 2000 14:02:14 -0500 (EST)

 On Mon, 13 Nov 2000, Ben Harris wrote:

 : > State-Changed-From-To: feedback->closed
 : > State-Changed-By: tv
 : > State-Changed-When: Mon Nov 13 08:33:34 PST 2000
 : > State-Changed-Why: 
 : > Submitter created and verified fix.
 : 
 : Did they?  The verification didn't make it into the PR, if they did.

 Ah, for some reason I misread you as submitter.  I can revert this back to
 feedback, then.

 -- 
 -- Todd Vierling <tv@wasabisystems.com>  *  http://www.wasabisystems.com/
 -- Speed, stability, security, and support.  Wasabi NetBSD:  Run with it.

State-Changed-From-To: closed->feedback 
State-Changed-By: bjh21 
State-Changed-When: Mon Nov 13 11:10:05 PST 2000 
State-Changed-Why:  
tv was mistaken -- the fix still needs to be confirmed by the submitter. 

From: "Martin J. Laubach" <mjl@emsi.priv.at>
To: bjh21@netbsd.org
Cc: gnats-bugs@netbsd.org
Subject: Re: bin/8750
Date: Mon, 13 Nov 2000 20:14:54 +0100

   I haven't seen the problem since your patch, but since I've
 only seen it occasionally and am not sure about how to provoke
 that happening, I guess it's OK to close the PR.

 	mjl

From: Ben Harris <bjh21@netbsd.org>
To: "Martin J. Laubach" <mjl@emsi.priv.at>
Cc: gnats-bugs@netbsd.org
Subject: Re: bin/8750
Date: Mon, 13 Nov 2000 19:22:00 +0000 (GMT)

 On Mon, 13 Nov 2000, Martin J. Laubach wrote:

 >   I haven't seen the problem since your patch, but since I've
 > only seen it occasionally and am not sure about how to provoke
 > that happening, I guess it's OK to close the PR.

 I believe it can be provoked by changing the clock between summer and
 winter time, but that's just the instance of the bug I fixed -- you may
 have run into something different, but I suspct not.

 I'll close the PR.

 -- 
 Ben Harris                                                   <bjh21@netbsd.org>
 Portmaster, NetBSD/arm26               <URL:http://www.netbsd.org/Ports/arm26/>

State-Changed-From-To: feedback->closed 
State-Changed-By: bjh21 
State-Changed-When: Mon Nov 13 11:23:10 PST 2000 
State-Changed-Why:  
Submitter thinks bug is fixed. 
>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.