From: Vladimír Vondruš Date: Thu, 21 Dec 2017 17:04:33 +0000 (+0100) Subject: site: make the locale work on Windows as well. X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~cjwatson/git?a=commitdiff_plain;h=f74ac0d517cf6f9d57c5b287ed7cb5482374e902;p=blog.git site: make the locale work on Windows as well. --- diff --git a/site/pelicanconf.py b/site/pelicanconf.py index 17052e01..4bdd4e6c 100644 --- a/site/pelicanconf.py +++ b/site/pelicanconf.py @@ -39,7 +39,12 @@ PAGE_PATHS = [''] TIMEZONE = 'Europe/Prague' DEFAULT_LANG = 'en' -DATE_FORMATS = {'en': ('en_US.UTF-8', '%b %d, %Y')} + +import platform +if platform.system() == 'Windows': + DATE_FORMATS = {'en': ('usa', '%b %d, %Y')} +else: + DATE_FORMATS = {'en': ('en_US.UTF-8', '%b %d, %Y')} # Feed generation is usually not desired when developing FEED_ATOM = None