Skip to content

Scrapy, a fast high-level web crawling & scraping framework for Python.

Remove deprecated %z formatting from the default LOG_DATEFORMAT

Julia Medina367ea81e716c
diff --git a/docs/topics/settings.rst b/docs/topics/settings.rst
index ac4f8d6d5..a9eba41ce 100644
--- a/docs/topics/settings.rst
+++ b/docs/topics/settings.rst
@@ -629,7 +629,7 @@ placeholders.
LOG_DATEFORMAT
--------------
-Default: ``'%Y-%m-%d %H:%M:%S%z'``
+Default: ``'%Y-%m-%d %H:%M:%S'``
String for formatting date/time, expansion of the ``%(asctime)s`` placeholder
in :setting:`LOG_FORMAT`. Refer to the `Python datetime documentation`_ for the whole list of available
diff --git a/scrapy/settings/default_settings.py b/scrapy/settings/default_settings.py
index 7459c4d73..0ea014007 100644
--- a/scrapy/settings/default_settings.py
+++ b/scrapy/settings/default_settings.py
@@ -168,7 +168,7 @@ LOG_ENABLED = True
LOG_ENCODING = 'utf-8'
LOG_FORMATTER = 'scrapy.logformatter.LogFormatter'
LOG_FORMAT = '%(asctime)s [%(name)s] %(levelname)s: %(message)s'
-LOG_DATEFORMAT = '%Y-%m-%d %H:%M:%S%z'
+LOG_DATEFORMAT = '%Y-%m-%d %H:%M:%S'
LOG_STDOUT = False
LOG_LEVEL = 'DEBUG'
LOG_FILE = None