How to set timestamps on GMT/UTC on Python logging?
How to set timestamps on GMT/UTC on Python logging? Question: Is it possible and how to set the logging timezone to GMT? (i.e. the %(asctime)s parameter in the format) Asked By: Jonathan Livni || Source Answers: logging.Formatter.converter = time.gmtime (documented in the docstring of logging.Formatter.formatTime) Answered By: Sven Marnach Just setting logging.Formatter.converter = time.gmtime is …