Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 30 Jan 2016 23:40:34 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-bugs@FreeBSD.org
Subject:   [Bug 206752] [patch] /bin/date format conversion bug
Message-ID:  <bug-206752-8-zjH6QWSazK@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-206752-8@https.bugs.freebsd.org/bugzilla/>
References:  <bug-206752-8@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=206752

Jilles Tjoelker <jilles@FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jilles@FreeBSD.org

--- Comment #1 from Jilles Tjoelker <jilles@FreeBSD.org> ---
The behaviour is indeed strange, but I don't think resetting the day of the
month to 1 whenever -j and -f are used together is correct. Commands like date
-j -f %H:%M:%S 00:00:00 should still print midnight of the current day, not of
the first of the month. Likewise, the date(1) man page (by referring to
strftime(3)) seems to suggest that nonexistent days like 30 February are
converted to something in March.

You can specify the day of the month (%d) as 1 in your script.

-- 
You are receiving this mail because:
You are the assignee for the bug.


Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-206752-8-zjH6QWSazK>