diff options
| author | Bryce Kwon <bryce@brycekwon.com> | |
|---|---|---|
| committer | Bryce Kwon <bryce@brycekwon.com> | |
| commit | ||
| parent | ||
| tree | ||
| download | ||
Date an empty atom feed at the epoch
Diffstat (limited to '')
| -rw-r--r-- | source/ui-atom.c | 5 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
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"); |
