> Index: mandoc.c > =================================================================== > RCS file: /cvs/src/usr.bin/mandoc/mandoc.c,v > retrieving revision 1.29 > diff -u -p -r1.29 mandoc.c > --- mandoc.c 24 Oct 2011 20:29:21 -0000 1.29 > +++ mandoc.c 1 Nov 2011 16:26:24 -0000 > @@ -609,9 +609,10 @@ mandoc_normdate(struct mparse *parse, ch > mandoc_msg(MANDOCERR_NODATE, parse, ln, pos, NULL); > time(&t); > } > + else if (a2time(&t, "%Y-%m-%d", in)) > + t = 0; > else if (!a2time(&t, "$" "Mdocdate: %b %d %Y $", in)&& > - !a2time(&t, "%b %d, %Y", in)&& > - !a2time(&t, "%Y-%m-%d", in)) { > + !a2time(&t, "%b %d, %Y", in)) { > mandoc_msg(MANDOCERR_BADDATE, parse, ln, pos, NULL); > t = 0; > } Ingo, Isn't it easier just to do as in the enclosed patch? man(7) doesn't seem to care at all about the date, so let's stop pretending that it does and just mandoc_strdup() instead of mandoc_normdate(). This patch also moves mandoc_normdate(), mandoc.c, into mdoc_normdate(), mdoc.c. Thoughts? Kristaps