Date: Fri, 30 Jan 2004 23:33:01 +0100 (CET) From: Danijel Tasov <dt@vosat.de> To: FreeBSD-gnats-submit@FreeBSD.org Subject: bin/62134: strange date -v results Message-ID: <200401302233.i0UMX19E032287@knast.server-king.de> Resent-Message-ID: <200401302240.i0UMe0Du048284@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 62134 >Category: bin >Synopsis: strange date -v results >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Jan 30 14:40:00 PST 2004 >Closed-Date: >Last-Modified: >Originator: Danijel Tasov >Release: FreeBSD 5.2-RELEASE i386 >Organization: >Environment: System: FreeBSD knast 5.2-RELEASE FreeBSD 5.2-RELEASE #0: Sat Jan 17 15:55:17 CET 2004 knarf@knast:/usr/obj/usr/src/sys/KLAGENFURT i386 >Description: Current date: Fri Jan 30 23:31:26 CET 2004 for i in 1 2 3 do date -v2004y -v${i}m -y17d +%Y-%m-%d done This results in the following output: 2004-01-17 2004-03-17 2004-03-17 instead of 2004-01-17 2004-02-17 2004-03-17 This bug apears in 5.2-RELEASE and 4.9-RELEASE. >How-To-Repeat: Run the script above. >Fix: Sorry. :-/ >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200401302233.i0UMX19E032287>