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 | f26f75bb32fa1474ee83fcff787b6423c44189cf (patch) | |
tree | 44c7e29c549509bc9e5fd633afed4b360a966dbd /man_html.c | |
parent | ee228d79036122b2d0284854cd2e94526fd838b9 (diff) | |
download | mandoc-f26f75bb32fa1474ee83fcff787b6423c44189cf.tar.gz |
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 | 8 |
1 files changed, 2 insertions, 6 deletions
@@ -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%"); |