From owner-freebsd-bugs Mon Apr 6 01:30:05 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id BAA22232 for freebsd-bugs-outgoing; Mon, 6 Apr 1998 01:30:05 -0700 (PDT) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: (from gnats@localhost) by hub.freebsd.org (8.8.8/8.8.8) id BAA22209; Mon, 6 Apr 1998 01:30:02 -0700 (PDT) (envelope-from gnats) Received: from shell1.qpt.com (sadams@shell1.qpt.com [170.1.194.9]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id BAA21331 for ; Mon, 6 Apr 1998 01:22:01 -0700 (PDT) (envelope-from sadams@shell1.qpt.com) Received: (from sadams@localhost) by shell1.qpt.com (8.8.7/8.8.7) id BAA09235; Mon, 6 Apr 1998 01:21:59 -0700 (PDT) (envelope-from sadams) Message-Id: <199804060821.BAA09235@shell1.qpt.com> Date: Mon, 6 Apr 1998 01:21:59 -0700 (PDT) From: Sean Adams Reply-To: sadams@shell1.qpt.com To: FreeBSD-gnats-submit@FreeBSD.ORG X-Send-Pr-Version: 3.2 Subject: bin/6223: PST/DST bug in /bin/date Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 6223 >Category: bin >Synopsis: PST/DST bug in /bin/date >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: Mon Apr 6 01:30:01 PDT 1998 >Last-Modified: >Originator: Sean Adams >Organization: QPT Networks >Release: FreeBSD 2.2.5-RELEASE i386 >Environment: cron script running date command with 10 minute adjustment >Description: When my cron job ran the following date command on Sun, 5 Apr 1998 03:01:00 -0700 (PDT), it died: /bin/date -v -10M +%Y.%m.%d.%H.%M -10M: Cannot apply date adjustment usage: date [-nu] [-d dst] [-r seconds] [-t west] [+format] [-v [+|-]val[ymwdHM]] ... [-f fmt date | [[[[yy]mm]dd]HH]MM[.ss]] Obviously, this is due to the PST/DST shift which occurred at 2:00PST. It didn't have a serious impact - I just lost some statistics samples, but it would be nice if date could do the adjustment properly regardless of the "missing" hour. >How-To-Repeat: Run the date command with a -10M adjustment just after the switch to DST. >Fix: The correct output for /bin/date -v -10M +%Y.%m.%d.%H.%M run on Sun, 5 Apr 1998 03:01:00 -0700 (PDT), would be: 1998.04.05.01.51 >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message