diff options
author | June McEnroe <june@causal.agency> | 2020-04-13 13:13:37 -0400 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2020-04-13 13:13:37 -0400 |
commit | 77dc80bbbe942eef0453fc1e3b7782a2ddf29879 (patch) | |
tree | 5a1518ce9772429b13c08d6cd9d406c01224c39e /atom.c | |
parent | Use UTC date everywhere (diff) | |
download | bubger-77dc80bbbe942eef0453fc1e3b7782a2ddf29879.tar.gz bubger-77dc80bbbe942eef0453fc1e3b7782a2ddf29879.zip |
Preserve original Date header in envelope
Diffstat (limited to '')
-rw-r--r-- | atom.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/atom.c b/atom.c index aa98406..98f5866 100644 --- a/atom.c +++ b/atom.c @@ -33,7 +33,7 @@ static char *atomID(const char *messageID) { int atomEntryOpen(FILE *file, const struct Envelope *envelope) { char *id = atomID(envelope->messageID); char date[sizeof("0000-00-00T00:00:00Z")]; - strftime(date, sizeof(date), "%FT%TZ", gmtime(&envelope->date)); + strftime(date, sizeof(date), "%FT%TZ", gmtime(&envelope->time)); struct Variable vars[] = { { "subject", envelope->subject }, { "from.name", addressName(envelope->from) }, |