Date: Thu, 29 Nov 2007 18:07:01 GMT From: Michael Wayne <wayne@staff.msen.com> To: freebsd-gnats-submit@FreeBSD.org Subject: bin/118330: /bin/date thinks December has 30 days Message-ID: <200711291807.lATI71aj028620@www.freebsd.org> Resent-Message-ID: <200711291810.lATIA0gS092592@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 118330 >Category: bin >Synopsis: /bin/date thinks December has 30 days >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Nov 29 18:10:00 UTC 2007 >Closed-Date: >Last-Modified: >Originator: Michael Wayne >Release: 6.2-RELEASE-p3 >Organization: Msen, Inc. >Environment: FreeBSD v1.msen.com 6.2-RELEASE-p3 FreeBSD 6.2-RELEASE-p3 #1: Fri Mar 23 10:44:55 EDT 2007 root@v1.msen.com:/usr/obj/usr/src/sys/GENERIC i386 >Description: /bin/date does not believe that December has 31 days >How-To-Repeat: December 30 works: % date -v30d -v12m -v7y Sun Dec 30 13:04:56 EST 2007 Dec 31 does not: % date -v31d -v12m -v7y 31d: Cannot apply date adjustment usage: date [-jnu] [-d dst] [-r seconds] [-t west] [-v[+|-]val[ymwdHMS]] ... [-f fmt date | [[[[[cc]yy]mm]dd]HH]MM[.ss]] [+format] >Fix: A quick glance at the code shows that the constant table lists 31 days for December so it's going to take a bit more effort than that. >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200711291807.lATI71aj028620>