about summary refs log tree commit diff
path: root/atom.c
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2020-04-13 12:43:56 -0400
committerJune McEnroe <june@causal.agency>2020-04-13 12:43:56 -0400
commitd031cf5f00de4bf6b33396f1a448833a6de33c5f (patch)
treeaa80e5cda92bfc2d3338f7020a8ab75ca1369cf5 /atom.c
parentRework path functions again (diff)
downloadbubger-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.c2
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) },