summaryrefslogtreecommitdiffstats
path: root/man_term.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2009-10-22 18:55:32 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2009-10-22 18:55:32 +0000
commitf26f75bb32fa1474ee83fcff787b6423c44189cf (patch)
tree44c7e29c549509bc9e5fd633afed4b360a966dbd /man_term.c
parentee228d79036122b2d0284854cd2e94526fd838b9 (diff)
downloadmandoc-f26f75bb32fa1474ee83fcff787b6423c44189cf.tar.gz
Fixed maddening mismatch between groff and strftime mismatch of day ("%e"). Noted by Ulrich Sporlein.
Diffstat (limited to 'man_term.c')
-rw-r--r--man_term.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/man_term.c b/man_term.c
index 188c9f1c..76e07ecc 100644
--- a/man_term.c
+++ b/man_term.c
@@ -909,13 +909,9 @@ print_body(DECL_ARGS)
static void
print_foot(struct termp *p, const struct man_meta *meta)
{
- struct tm *tm;
- char buf[BUFSIZ];
+ char buf[DATESIZ];
- tm = localtime(&meta->date);
-
- if (0 == strftime(buf, p->rmargin, "%B %e, %Y", tm))
- (void)strlcpy(buf, "(invalid date)", BUFSIZ);
+ time2a(meta->date, buf, DATESIZ);
term_vspace(p);