logging: log timestamps as local timezone instead of UTC (#5607)

* logging: log timestamps as local timezone instead of UTC

* test(logging): expect localtime instead of gmtime

* linter fix in logging
This commit is contained in:
sydneyli
2018-03-21 15:41:33 -07:00
committed by Brad Warren
parent afb6260c34
commit bca0aa48c2
2 changed files with 1 additions and 3 deletions
+1 -1
View File
@@ -156,7 +156,7 @@ class SetupLogFileHandlerTest(test_util.ConfigTestCase):
handler.close()
self.assertEqual(handler.level, logging.DEBUG)
self.assertEqual(handler.formatter.converter, time.gmtime)
self.assertEqual(handler.formatter.converter, time.localtime)
expected_path = os.path.join(self.config.logs_dir, log_file)
self.assertEqual(log_path, expected_path)