ISO8601 compliant timestamps were added with:
31037d3 - "Use ISO 8601 timestamp format for error/httpd/sshd logs"
Some logging frameworks (like ES beats) does not support ISO8601 but
does support RFC3339. By complying to both standards we make the life
of Gerrit admins much easier.
The current timeformat for timestamps in json-logs is:
"yyyy-MM-dd'T'HH:mm:ss.SSSZ"
This results in a timestamp that is ISO8601 compliant:
2020-09-10T16:21:13.571+0200
However RFC3339 does only allows timezones in the format:
("+" / "-") time-hour ":" time-minute [1]
By changing the zone part of the timeformat:
"yyyy-MM-dd'T'HH:mm:ss.SSSXXX"
We will get a timestamp like:
2020-09-10T16:21:13.571+02:00
This complies with both RFC3339 and ISO8601 since ISO8601 allows:
("+" / "-") time-hour [[":"] time-minute]
[1] https://tools.ietf.org/html/rfc3339
Change-Id: I5b56c5871215f8753e8b25e7664ed078461d5a00