diff options
author | June McEnroe <june@causal.agency> | 2020-04-09 20:50:09 -0400 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2020-04-09 20:50:09 -0400 |
commit | 212863d1cef4b9a596df13584f29fcdd645cbab2 (patch) | |
tree | 2eb1fd9beef0a5d85c8762bdd46ea5ceef032b4b /archive.c | |
parent | Render escaped mailto URL (diff) | |
download | bubger-212863d1cef4b9a596df13584f29fcdd645cbab2.tar.gz bubger-212863d1cef4b9a596df13584f29fcdd645cbab2.zip |
Render date in HTML envelope
Diffstat (limited to '')
-rw-r--r-- | archive.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/archive.c b/archive.c index fd8ef53..ca56c8c 100644 --- a/archive.c +++ b/archive.c @@ -142,6 +142,9 @@ static struct Envelope parseEnvelope(struct List list) { date = strptime(date, "%a, %e %b %Y %H:%M:%S %z", &envelope.date); if (!date) errx(EX_PROTOCOL, "invalid envelope date format"); + envelope.date.tm_isdst = -1; + envelope.utc = mktime(&envelope.date); + if (list.ptr[Subject].type != String) { errx(EX_PROTOCOL, "invalid envelope subject field"); } |