From 02d361c8b648ec22d4ac9932dc9f3d1e6e3f0bec Mon Sep 17 00:00:00 2001 From: jesopo Date: Fri, 21 Sep 2018 10:35:05 +0100 Subject: [PATCH] Show logging timestamp as UTC/GMT --- Logging.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Logging.py b/Logging.py index dadde2b9..22d10711 100644 --- a/Logging.py +++ b/Logging.py @@ -20,7 +20,8 @@ class Log(object): formatter = BitBotFormatter( "%(asctime)s [%(levelname)s] %(message)s", - "%Y-%m-%dT%H:%M:%S.%f%z") + "%Y-%m-%dT%H:%M:%S.%fZ") + formatter.converter = time.gmtime stdout_handler = logging.StreamHandler(sys.stdout) stdout_handler.setLevel(logging.INFO)