=================================================================== RCS file: /cvs/texi2mdoc/util.c,v retrieving revision 1.34 retrieving revision 1.35 diff -u -p -r1.34 -r1.35 --- texi2mdoc/util.c 2015/03/19 09:53:36 1.34 +++ texi2mdoc/util.c 2018/11/13 08:45:29 1.35 @@ -1,4 +1,4 @@ -/* $Id: util.c,v 1.34 2015/03/19 09:53:36 schwarze Exp $ */ +/* $Id: util.c,v 1.35 2018/11/13 08:45:29 schwarze Exp $ */ /* * Copyright (c) 2015 Kristaps Dzonsons * @@ -25,7 +25,6 @@ #include #include #include -#include #include #include "extern.h" @@ -1731,21 +1730,16 @@ texicache(struct texi *p, const char *buf, size_t sz) * We use the title set with @settitle for the `Nd' description * and the source document filename (the first one as invoked on * the command line) for the title. - * The date is set to the current date. + * The date is set to the modification time of the input. */ void teximdocopen(struct texi *p, size_t *pos) { const char *cp; - time_t t; - char date[32]; - t = time(NULL); - strftime(date, sizeof(date), "%F", localtime(&t)); - p->seenvs = -1; teximacroopen(p, "Dd"); - texiputchars(p, date); + texiputchars(p, p->date); teximacroclose(p); teximacroopen(p, "Dt"); for (cp = p->title; '\0' != *cp; cp++)