diff options
author | June McEnroe <june@causal.agency> | 2020-04-13 12:43:56 -0400 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2020-04-13 12:43:56 -0400 |
commit | d031cf5f00de4bf6b33396f1a448833a6de33c5f (patch) | |
tree | aa80e5cda92bfc2d3338f7020a8ab75ca1369cf5 /atom.c | |
parent | Rework path functions again (diff) | |
download | bubger-d031cf5f00de4bf6b33396f1a448833a6de33c5f.tar.gz bubger-d031cf5f00de4bf6b33396f1a448833a6de33c5f.zip |
Use UTC date everywhere
I thought I could preserve the original time zone but it turns out that libc is just too shit to do that.
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 83a4457..aa98406 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->utc)); + strftime(date, sizeof(date), "%FT%TZ", gmtime(&envelope->date)); struct Variable vars[] = { { "subject", envelope->subject }, { "from.name", addressName(envelope->from) }, |