From cd3461ed2decce6e980d3a4c93c615bd8f4cb5c0 Mon Sep 17 00:00:00 2001 From: Kristaps Dzonsons Date: Thu, 22 Oct 2009 18:55:32 +0000 Subject: Fixed maddening mismatch between groff and strftime mismatch of day ("%e"). Noted by Ulrich Sporlein. --- man_html.c | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'man_html.c') diff --git a/man_html.c b/man_html.c index 579c861b..98d4d723 100644 --- a/man_html.c +++ b/man_html.c @@ -1,4 +1,4 @@ -/* $Id: man_html.c,v 1.11 2009/10/18 19:03:36 kristaps Exp $ */ +/* $Id: man_html.c,v 1.12 2009/10/22 18:55:32 kristaps Exp $ */ /* * Copyright (c) 2008, 2009 Kristaps Dzonsons * @@ -281,15 +281,11 @@ man_root_pre(MAN_ARGS) static void man_root_post(MAN_ARGS) { - struct tm tm; struct htmlpair tag[2]; struct tag *t, *tt; - char b[BUFSIZ]; + char b[DATESIZ]; - (void)localtime_r(&m->date, &tm); - - if (0 == strftime(b, BUFSIZ - 1, "%B %e, %Y", &tm)) - err(EXIT_FAILURE, "strftime"); + time2a(m->date, b, DATESIZ); PAIR_CLASS_INIT(&tag[0], "footer"); bufcat_style(h, "width", "100%"); -- cgit v1.2.3