Skip to content

Commit 34be02a

Browse files
authored
Fix local timezone (#42)
1 parent 494e98b commit 34be02a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pylsp/__main__.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
import logging
66
import logging.config
77
import sys
8+
import time
89

910
try:
1011
import ujson as json
@@ -14,7 +15,8 @@
1415
from .python_lsp import (PythonLSPServer, start_io_lang_server,
1516
start_tcp_lang_server)
1617

17-
LOG_FORMAT = "%(asctime)s UTC - %(levelname)s - %(name)s - %(message)s"
18+
LOG_FORMAT = "%(asctime)s {0} - %(levelname)s - %(name)s - %(message)s".format(
19+
time.localtime().tm_zone)
1820

1921

2022
def add_arguments(parser):

0 commit comments

Comments
 (0)