[Bug 206752] [patch] /bin/date format conversion bug

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sat Jan 30 23:40:34 UTC 2016


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

Jilles Tjoelker <jilles at FreeBSD.org> changed:

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

--- Comment #1 from Jilles Tjoelker <jilles at 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.


More information about the freebsd-bugs mailing list