From 34be02a6ce37bab7fb9ba1845006c0af16fb7efc Mon Sep 17 00:00:00 2001 From: Eisuke Kawashima Date: Thu, 17 Jun 2021 07:28:32 +0900 Subject: [PATCH] Fix local timezone (#42) --- 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):