about summary refs log tree commit diff
path: root/timeutil.c
Commit message (Collapse)AuthorAgeFilesLines
* fix(timeutil): only UTC if no daylight savingsternenseemann2020-08-241-1/+1
| | | | Fixes output for BST mostly
* refactor(stringutil): add function catn_alloc to ease url building in main.csternenseemann2020-08-211-1/+1
| | | | | | | | | * bitutil.{c,h} → stringutil.{c,h} (more appropriate) * new function catn_alloc(size_t n, ...) which concats `n` given strings into an dynamically allocated buffer, mostly useful for building URLs which is done in blog_rss. may be a possibility to use in entry.c, but code there might be too specific.
* feat(timeutil): output proper RFC3339 format for atomsternenseemann2020-08-211-5/+66
| | | | | | | | Previously, since we used strftime %z it'd output an offset as +HHMM while RFC3339 requires +HH:MM. Currently we implement outputting this manually which proved to be non-trivial because of the tzset() API. This probably should be improved in the future since I suspect it produces incorrect results in some edge cases.
* feat(rss): minor improvements and refactor time formattingsternenseemann2020-08-201-0/+30
* add timeutil.{c,h}: utility for formatting timestamps * wrap feed description in CDATA * use xml_escaped where applicable * use time of latest entry for lastBuildDate