diff options
Diffstat (limited to 'mdoc_strings.c')
-rw-r--r-- | mdoc_strings.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mdoc_strings.c b/mdoc_strings.c index 24bc2b00..9a715a9e 100644 --- a/mdoc_strings.c +++ b/mdoc_strings.c @@ -216,9 +216,9 @@ mdoc_atotime(const char *p) (void)memset(&tm, 0, sizeof(struct tm)); - if (0 == strcmp(p, "$Mdocdate$")) + if (0 == strcmp(p, "$" "Mdocdate$")) return(time(NULL)); - if ((pp = strptime(p, "$Mdocdate$", &tm)) && 0 == *pp) + if ((pp = strptime(p, "$" "Mdocdate: %b %d %Y $", &tm)) && 0 == *pp) return(mktime(&tm)); /* XXX - this matches "June 1999", which is wrong. */ if ((pp = strptime(p, "%b %d %Y", &tm)) && 0 == *pp) |