madzak / python-json-logger

Json Formatter for the standard python logger
BSD 2-Clause "Simplified" License
1.74k stars 231 forks source link

Add timezone to timestamp #91

Closed lalten closed 4 years ago

lalten commented 4 years ago

The "timestamp" field does not contain timezone information. If you don't live in GMT, that is probably wrong for you. This PR adds an additional "+000" to the serialized datetime. Also, it uses the log creation timestamp, not whatever time it is when the field gets added.

madzak commented 4 years ago

Thanks for this and sorry for the HUGE delay!