diff options
author | Hiltjo Posthuma <hiltjo@codemadness.org> | 2018-10-08 19:21:55 +0200 |
---|---|---|
committer | Hiltjo Posthuma <hiltjo@codemadness.org> | 2018-10-08 19:21:55 +0200 |
commit | fe817dc355d52f6842f3d73f81bd5c8129f94604 (patch) | |
tree | e9ab2b665c01dcf324b707eed6810eaabe7c2fa9 | |
parent | 0c137fc87d3d1560686ce0086f9801dbead422d4 (diff) |
sfeed_mbox: add seconds to Date header
-rw-r--r-- | sfeed_mbox.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sfeed_mbox.c b/sfeed_mbox.c index 7989d8e..911500f 100644 --- a/sfeed_mbox.c +++ b/sfeed_mbox.c @@ -89,8 +89,8 @@ printfeed(FILE *fp, const char *feedname) /* can't convert: default to formatted time for time_t 0. */ if (!gmtime_r(&parsedtime, &tm) || !strftime(timebuf, sizeof(timebuf), - "%a, %d %b %Y %H:%M +0000", &tm)) - strlcpy(timebuf, "Thu, 01 Jan 1970 00:00 +0000", + "%a, %d %b %Y %H:%M:%S +0000", &tm)) + strlcpy(timebuf, "Thu, 01 Jan 1970 00:00:00 +0000", sizeof(timebuf)); /* mbox + mail header */ |