Use four-digits year (#7336)

pull/1397/merge
Fabian Affolter 2017-04-27 18:30:34 +02:00 committed by Paulus Schoutsen
parent 9a67111a0f
commit 0298522fd5
1 changed files with 1 additions and 1 deletions

View File

@ -214,7 +214,7 @@ def async_enable_logging(hass: core.HomeAssistant, verbose: bool=False,
fmt = ("%(asctime)s %(levelname)s (%(threadName)s) "
"[%(name)s] %(message)s")
colorfmt = "%(log_color)s{}%(reset)s".format(fmt)
datefmt = '%y-%m-%d %H:%M:%S'
datefmt = '%Y-%m-%d %H:%M:%S'
# suppress overly verbose logs from libraries that aren't helpful
logging.getLogger("requests").setLevel(logging.WARNING)