Subject: bin/2522: Date bug
To: None <gnats-bugs@NetBSD.ORG>
From: Alex Barclay <acb@mavericks.bt.co.uk>
List: netbsd-bugs
Date: 06/06/1996 18:30:03
>Number:         2522
>Category:       bin
>Synopsis:       /bin/date doesn't honour daylight savings time
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bin-bug-people (Utility Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Jun  6 12:50:04 1996
>Last-Modified:
>Originator:     Alex Barclay
>Organization:
BT Laboratories	
>Release:        NetBSD-current 01 Jun 96
>Environment:
System: NetBSD portcullis.mavericks.bt.co.uk 1.1A NetBSD 1.1A (PORTCULLIS) #0: Thu Jan 18 12:29:33 GMT 1996 root@portcullis.mavericks.bt.co.uk:/amd/clouseau/disks/dk1/NetBSD-current/src/sys/arch/i386/compile/PORTCULLIS i386


>Description:
When changing the date. If you come from "way back in time" when DST isn't in
effect and change to a time when it is, it gets things wrong
>How-To-Repeat:
[portcullis : /home/acb] > date +%s 7601010000.00 |& head
189302405
[portcullis : /home/acb] > date
Thu Jan  1 00:03:35 GMT 1976

This bit screwed up
[portcullis : /home/acb] > date 9606061708.59
Thu Jun  6 18:08:59 BST 1996

I didn't quite believe it
[portcullis : /home/acb] > date
Thu Jun  6 18:09:01 BST 1996

Same again and it's fixed
[portcullis : /home/acb] > date 9606061710.00
Thu Jun  6 17:10:00 BST 1996

>Fix:
Hmmm. Perform the set again and it corrects itself
>Audit-Trail:
>Unformatted: