From 79cd3652a76dcb3af5103ef857dcfb32255e885f Mon Sep 17 00:00:00 2001 From: Eisuke Kawashima Date: Tue, 15 Jun 2021 19:26:17 +0900 Subject: [PATCH] Fix local timezone --- pylsp/__main__.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pylsp/__main__.py b/pylsp/__main__.py index 065cdee9..bbc6986e 100644 --- a/pylsp/__main__.py +++ b/pylsp/__main__.py @@ -5,6 +5,7 @@ import logging import logging.config import sys +import time try: import ujson as json @@ -14,7 +15,8 @@ from .python_lsp import (PythonLSPServer, start_io_lang_server, start_tcp_lang_server) -LOG_FORMAT = "%(asctime)s UTC - %(levelname)s - %(name)s - %(message)s" +LOG_FORMAT = "%(asctime)s {0} - %(levelname)s - %(name)s - %(message)s".format( + time.localtime().tm_zone) def add_arguments(parser):