issue a warning in case no timezone is defined

This commit is contained in:
Alexis Metaireau 2011-08-18 13:58:04 +02:00
commit 96b52a2283
2 changed files with 21 additions and 4 deletions

View file

@ -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