diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-10-22 18:55:32 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-10-22 18:55:32 +0000 |
commit | cd3461ed2decce6e980d3a4c93c615bd8f4cb5c0 (patch) | |
tree | d62af90d1db9db8f0dd241d06a9e221234572467 /man_html.c | |
parent | 97e702f1687ec3975b215d6ea566bf1d6aca30a8 (diff) | |
download | mandoc-cd3461ed2decce6e980d3a4c93c615bd8f4cb5c0.tar.gz mandoc-cd3461ed2decce6e980d3a4c93c615bd8f4cb5c0.tar.zst mandoc-cd3461ed2decce6e980d3a4c93c615bd8f4cb5c0.zip |
Fixed maddening mismatch between groff and strftime mismatch of day ("%e"). Noted by Ulrich Sporlein.
Diffstat (limited to 'man_html.c')
-rw-r--r-- | man_html.c | 10 |
1 files changed, 3 insertions, 7 deletions
@@ -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 <kristaps@kth.se> * @@ -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%"); |