mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
issue a warning in case no timezone is defined
This commit is contained in:
parent
720b8d3168
commit
96b52a2283
2 changed files with 21 additions and 4 deletions
|
|
@ -83,5 +83,11 @@ def read_settings(filename):
|
|||
else:
|
||||
log.warn("LOCALE option doesn't contain a correct value")
|
||||
|
||||
if not 'TIMEZONE' in context:
|
||||
log.warn("No timezone information specified in the settings. Assuming your "\
|
||||
"timezone is UTC for feed generation. "\
|
||||
"Check http://docs.notmyidea.org/alexis/pelican/settings.html#timezone "\
|
||||
"for more information")
|
||||
|
||||
# set the locale
|
||||
return context
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue