summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorVincent Bernat <Vincent.Bernat@exoscale.ch>2015-10-02 17:00:58 +0200
committerEric Leblond <eric@regit.org>2015-10-02 17:11:04 +0200
commitb09205b017cef10467e04b3c7ade31cc34577505 (patch)
tree391729d2bcd73b6c819e0bc5465f909ce8f5f02a /doc
parent0ea23cc7ad69556c71787a791fd8e13942540f16 (diff)
json: append timezone information to ISO 8601 date
While this is not strictly needed for ISO 8601, this is helpful since otherwise, the receiver can't assume anything about the timezone. This uses a GNU extension but as ulogd is quite Linux-specific, this shouldn't be a problem. The POSIX variables (tzname and daylight) are quite difficult to use because daylight handling is incomplete (daylight don't say if DST is now in effect, it just says it is sometimes in effect). A timezone offset is used instead of a timezone since it is usually easier to parse (strptime in glibc is not able to parse a timezone name) and don't require an up-to-date TZ database. Signed-off-by: Vincent Bernat <Vincent.Bernat@exoscale.ch>
Diffstat (limited to 'doc')
0 files changed, 0 insertions, 0 deletions