Skip to content

Commit

Permalink
log in localtime(), not gmtime()
Browse files Browse the repository at this point in the history
  • Loading branch information
ksanislo committed Jan 2, 2019
1 parent c9b82f2 commit f327fd6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tcc-exporter
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ from http.cookiejar import LWPCookieJar
from http.server import HTTPServer, BaseHTTPRequestHandler
from urllib.error import HTTPError, URLError

VERSION = '1.1.1'
VERSION = '1.1.2'
CONFIG_FILE = os.environ.get('TCC_CONFIG_FILE', 'persistent/config.yml')
PREFIX = 'https://mytotalconnectcomfort.com/'

Expand Down Expand Up @@ -230,7 +230,7 @@ def log(level, *message):
except FileNotFoundError:
lfh = open(config['log.file'], 'w')
try:
timestring = time.strftime('%D %T')
timestring = time.strftime('%D %T', time.localtime())
lfh.write("{0} [{1}] {2}\n".format(timestring, LOGLEVELS[level], " ".join(message)))
lfh.flush()
except:
Expand Down

0 comments on commit f327fd6

Please sign in to comment.