diff options
context:
space:
mode:
authorBryce Kwon <bryce@brycekwon.com>
committerBryce Kwon <bryce@brycekwon.com>
commit
parent
tree
download
Date an empty atom feed at the epoch
Diffstat (limited to 'source')
-rw-r--r--source/ui-atom.c5
1 file changed, 3 insertions, 2 deletions
diff --git a/source/ui-atom.c b/source/ui-atom.c
index bc13367..6eaa055 100644
--- a/source/ui-atom.c
+++ b/source/ui-atom.c
@@ -277,9 +277,10 @@ void cgit_print_atom(char *tip, const char *path, int max_count)
}
if (need_updated) {
// Atom makes a feed level updated mandatory, and an empty feed
- // has no commit to take one from.
+ // has no commit to take one from, so the epoch stands in and
+ // keeps the feed byte for byte stable.
html("<updated>");
- xml_txt(feed_date(time(NULL)));
+ xml_txt(feed_date(0));
html("</updated>\n");
}
html("</feed>\n");